...
|
...
|
@@ -37,7 +37,7 @@ class ShareController extends WeChatBaseController |
|
|
$this->redirect('information');
|
|
|
}
|
|
|
//判断有没有生成过
|
|
|
if(!file_exists('./upload/poster/poster_'.$user_id.".png")){
|
|
|
// if(!file_exists('./upload/poster/poster_'.$user_id.".png")){
|
|
|
$url = $this->get_url($my_user['id'],$my_user['status']);
|
|
|
$webPath = 'qrcode/share_'.$user_id.'.png';
|
|
|
$savePath = './upload/'.$webPath;
|
...
|
...
|
@@ -63,7 +63,7 @@ class ShareController extends WeChatBaseController |
|
|
->water(ROOT_PATH."public/upload/avatar/avatar_".$user_id.".png",[289,478],100)
|
|
|
->water(ROOT_PATH."public/bg.png",\think\Image::WATER_CENTER,100)
|
|
|
->save('./upload/poster/poster_'.$user_id.".png");
|
|
|
}
|
|
|
// }
|
|
|
$share_image = cmf_get_image_url('poster/poster_'.$user_id.".png");
|
|
|
$this->assign('share_image',$share_image);
|
|
|
return $this->fetch();
|
...
|
...
|
|