...
|
...
|
@@ -74,6 +74,8 @@ class Share extends WechatBase |
|
|
$user_id = $user['id'];
|
|
|
//保存头像
|
|
|
if(strpos($user['avatar'],'https') === false || strpos($user['avatar'],'http') === false){
|
|
|
echo 123;
|
|
|
exit();
|
|
|
$avatar_url = ".".$user['avatar'];
|
|
|
$image = \think\Image::open($avatar_url);
|
|
|
$image->thumb(65, 65,\think\Image::THUMB_SCALING)->save($avatar_url);
|
...
|
...
|
|