正在显示
1 个修改的文件
包含
0 行增加
和
2 行删除
@@ -991,8 +991,6 @@ class SecondController extends RestBaseController | @@ -991,8 +991,6 @@ class SecondController extends RestBaseController | ||
991 | $info['photo']=explode('https://volunteer.cnpu.org',$user['photo']); | 991 | $info['photo']=explode('https://volunteer.cnpu.org',$user['photo']); |
992 | $path1=ROOT_PATH.'public/imgs/font.png'; | 992 | $path1=ROOT_PATH.'public/imgs/font.png'; |
993 | $path2=ROOT_PATH.'public'.DS.$info['photo'][1]; | 993 | $path2=ROOT_PATH.'public'.DS.$info['photo'][1]; |
994 | - dump($path1); | ||
995 | - dump($path2); | ||
996 | $image1 =\think\Image::open($path1); | 994 | $image1 =\think\Image::open($path1); |
997 | $image2 =\think\Image::open($path2)->thumb('225',310,\think\Image::THUMB_CENTER)->save(ROOT_PATH.'public/upload/user/'.$userId.'.png'); | 995 | $image2 =\think\Image::open($path2)->thumb('225',310,\think\Image::THUMB_CENTER)->save(ROOT_PATH.'public/upload/user/'.$userId.'.png'); |
998 | $photo=''; | 996 | $photo=''; |
-
请 注册 或 登录 后发表评论