From 201346ee5ef27ef89f6b7ca310fa8885497a2ba1 Mon Sep 17 00:00:00 2001
From: 王晓刚 <wxg@bronet.cn>
Date: Mon, 9 Sep 2019 11:51:48 +0800
Subject: [PATCH] 分享bug

---
 app/portal/controller/GoodsdetailsController.php   |  2 +-
 app/portal/controller/IndexController.php          |  6 +++---
 simplewind/cmf/controller/WeChatBaseController.php |  9 ++++-----
 3 files changed, 8 insertions(+), 9 deletions(-)

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);
--
libgit2 0.24.0