...
|
...
|
@@ -43,7 +43,9 @@ class ShareController extends WeChatBaseController |
|
|
$savePath = './upload/'.$webPath;
|
|
|
//生成带参二维码
|
|
|
if(!file_exists($savePath)){
|
|
|
$prcode_url = $this->code_img($my_user['id'],$my_user['status']);
|
|
|
echo $savePath;
|
|
|
exit();
|
|
|
$prcode_url = $this->code_img($user_id,$my_user['status']);
|
|
|
}
|
|
|
//保存头像
|
|
|
$avatar=$this->getImage($user['avatar'],'avatar_'.$user['id']);
|
...
|
...
|
@@ -195,8 +197,9 @@ class ShareController extends WeChatBaseController |
|
|
}
|
|
|
$code_img = $this->code_img1($my_user_id,$status);
|
|
|
$code = file_get_contents($code_img);
|
|
|
file_put_contents(ROOT_PATH."public/upload/qrcode/code_img_$my_user_id.png",$code);
|
|
|
return $savePath."code_img_$my_user_id.png";
|
|
|
$user_id = Db::name('my_user')->where('id',$my_user_id)->value('uid');
|
|
|
file_put_contents(ROOT_PATH."public/upload/qrcode/code_img$user_id.png",$code);
|
|
|
return $savePath."code_img$user_id.png";
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|