作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

补全信息页面

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