...
|
...
|
@@ -976,7 +976,6 @@ class SecondController extends RestBaseController |
|
|
* @method POST
|
|
|
*
|
|
|
*
|
|
|
*
|
|
|
*@header name:XX-Token require:1 default: desc:token
|
|
|
*@param name:type type:int require:1 other: desc:1正面2背面
|
|
|
*
|
...
|
...
|
@@ -992,9 +991,9 @@ class SecondController extends RestBaseController |
|
|
$userInfo=$User->getUserInfo($userId);
|
|
|
|
|
|
$path='../upload/zhengjian/';
|
|
|
$info['photo']=explode('https://volunteer.cnpu.org',$user['photo']);
|
|
|
$info['photo']=explode('volunteer.cnpu.org',$user['photo']);
|
|
|
$path1=ROOT_PATH.'public/imgs/font.png';
|
|
|
$path2=ROOT_PATH.'public'.DS.$info['photo'][1];
|
|
|
$path2=ROOT_PATH.'public'.DS.$info['photo'][2];
|
|
|
$image1 =\think\Image::open($path1);
|
|
|
$image2 =\think\Image::open($path2)
|
|
|
->thumb('225',310,\think\Image::THUMB_CENTER)->save(ROOT_PATH.'public/upload/user/'.$userId.'.png');
|
...
|
...
|
|