diff --git a/app/portal/controller/GoodsdetailsController.php b/app/portal/controller/GoodsdetailsController.php index 36300b7..6759cc4 100644 --- a/app/portal/controller/GoodsdetailsController.php +++ b/app/portal/controller/GoodsdetailsController.php @@ -29,7 +29,7 @@ class GoodsdetailsController extends WeChatBaseController{ $this->error('查无此人','','',''); } if($my_user['status'] != $goods_id['status']){ - $this->error('分享人身份有改动','','',''); + $this->error('链接失效','','',''); } $share_user = Db::name('my_user') -> where('uid',$uid) -> find(); //判断用户是否存在 diff --git a/app/portal/controller/IndexController.php b/app/portal/controller/IndexController.php index 1251b92..a645f52 100644 --- a/app/portal/controller/IndexController.php +++ b/app/portal/controller/IndexController.php @@ -49,7 +49,7 @@ class IndexController extends WeChatBaseController $this->error('查无此人','','',''); } if($my_user['status'] != $data_id['status_id']){ - $this->error('该二维码已失效','','',''); + $this->error('链接失效','','',''); } //判断数据是老师还是业务员 if($data_id['status_id'] == 2){ @@ -87,7 +87,7 @@ class IndexController extends WeChatBaseController $this->error('查无此人','','',''); } if($my_user['status'] != $data_id['status_id']){ - $this->error('该二维码已失效','','',''); + $this->error('链接失效','','',''); } //判断用户是不是老师 if($data_my_user['status'] == 3){ @@ -152,7 +152,7 @@ class IndexController extends WeChatBaseController $this->error('查无此人','','',''); } if($my_user['status'] != $data_id['status_id']){ - $this->error('该二维码已失效','','',''); + $this->error('链接失效','','',''); } //判断数据是老师还是业务员 if($data_id['status_id'] == 2){ diff --git a/simplewind/cmf/controller/WeChatBaseController.php b/simplewind/cmf/controller/WeChatBaseController.php index 5c9b0fe..8b85586 100644 --- a/simplewind/cmf/controller/WeChatBaseController.php +++ b/simplewind/cmf/controller/WeChatBaseController.php @@ -204,11 +204,10 @@ class WeChatBaseController extends BaseController */ public function checkWeChatUserLogin() { - // -// if(cmf_get_current_user_id()==3){ -// $user = Db::name('user')->where('id',6)->find(); -// cmf_update_current_user($user); -// } + if(cmf_get_current_user_id()==3){ + $user = Db::name('user')->where('id',484)->find(); + cmf_update_current_user($user); + } // else if(cmf_get_current_user_id()==484){ // $user = Db::name('user')->where('id',9)->find(); // cmf_update_current_user($user);