正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
@@ -976,7 +976,6 @@ class SecondController extends RestBaseController | @@ -976,7 +976,6 @@ class SecondController extends RestBaseController | ||
976 | * @method POST | 976 | * @method POST |
977 | * | 977 | * |
978 | * | 978 | * |
979 | - * | ||
980 | *@header name:XX-Token require:1 default: desc:token | 979 | *@header name:XX-Token require:1 default: desc:token |
981 | *@param name:type type:int require:1 other: desc:1正面2背面 | 980 | *@param name:type type:int require:1 other: desc:1正面2背面 |
982 | * | 981 | * |
@@ -992,9 +991,9 @@ class SecondController extends RestBaseController | @@ -992,9 +991,9 @@ class SecondController extends RestBaseController | ||
992 | $userInfo=$User->getUserInfo($userId); | 991 | $userInfo=$User->getUserInfo($userId); |
993 | 992 | ||
994 | $path='../upload/zhengjian/'; | 993 | $path='../upload/zhengjian/'; |
995 | - $info['photo']=explode('https://volunteer.cnpu.org',$user['photo']); | 994 | + $info['photo']=explode('volunteer.cnpu.org',$user['photo']); |
996 | $path1=ROOT_PATH.'public/imgs/font.png'; | 995 | $path1=ROOT_PATH.'public/imgs/font.png'; |
997 | - $path2=ROOT_PATH.'public'.DS.$info['photo'][1]; | 996 | + $path2=ROOT_PATH.'public'.DS.$info['photo'][2]; |
998 | $image1 =\think\Image::open($path1); | 997 | $image1 =\think\Image::open($path1); |
999 | $image2 =\think\Image::open($path2) | 998 | $image2 =\think\Image::open($path2) |
1000 | ->thumb('225',310,\think\Image::THUMB_CENTER)->save(ROOT_PATH.'public/upload/user/'.$userId.'.png'); | 999 | ->thumb('225',310,\think\Image::THUMB_CENTER)->save(ROOT_PATH.'public/upload/user/'.$userId.'.png'); |
-
请 注册 或 登录 后发表评论