作者 sgj
1 个管道 的构建 失败 耗费 0 秒

修改志愿者列表

@@ -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='';