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

修改志愿者列表

... ... @@ -29,6 +29,7 @@ use api\index\model\UserModel;
use cmf\controller\RestBaseController;
use FontLib\Table\Type\name;
use think\console\output\formatter\Style;
use think\Image;
use think\Validate;
/**
... ... @@ -968,21 +969,33 @@ class SecondController extends RestBaseController
}
/**
* @title 生成电子证件(暂无)
* @title 生成电子证件
* @description 生成电子证件
* @author sgj
* @url /index/second/commitOrder
* @url /index/second/zhengJianPic
* @method POST
*
*
*
*@header name:XX-Token require:1 default: desc:token
*@param name:good_id type:int require:1 other: desc:商品id
*@param name:type type:int require:1 other: desc:1正面2背面
*
* @throws
*/
public function zhengJianPic(){
$userId=$this->getUserId();
$User=new VolunteerModel();
$user=$User->where('user_id',$userId)->find()->toArray();
dump($user);
$info['photo']=explode('https://volunteer.cnpu.org',$user['photo']);
dump($info);
$path1=ROOT_PATH.'public/imgs/font.png';
$path2=ROOT_PATH.'public'.DS.$info['photo'][1];
dump($path1);
dump($path2);
$image1 =\think\Image::open($path1);
$image2 =\think\Image::open($path2);
//$image2->thumb(430,62);
}
/**
* @title 他人主页
... ...