...
|
...
|
@@ -14,6 +14,13 @@ use think\Db; |
|
|
|
|
|
class ShareController extends WeChatBaseController
|
|
|
{
|
|
|
/**
|
|
|
* 我的推广页面
|
|
|
* @return mixed
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function index(){
|
|
|
//判断用户是否填写手机号
|
|
|
$user_id = cmf_get_current_user_id();
|
...
|
...
|
@@ -22,9 +29,9 @@ class ShareController extends WeChatBaseController |
|
|
if(empty($my_user)){
|
|
|
$this->error('查询为空','','','');
|
|
|
}
|
|
|
if(empty($my_user['phone'])){
|
|
|
$this->error('跳转补全信息页面','','','');
|
|
|
}
|
|
|
// if(empty($my_user['phone'])){
|
|
|
// $this->error('跳转补全信息页面','','','');
|
|
|
// }
|
|
|
//判断有没有生成过
|
|
|
if(file_exists('./upload/poster/poster_'.$user_id.".png")){
|
|
|
$url = $this->get_url($user_id,$my_user['status']);
|
...
|
...
|
|