From ddcccaff1fea1f5e98be610488eff307b29c4b24 Mon Sep 17 00:00:00 2001 From: anyv <anyu@bronet.cn> Date: Fri, 14 Jun 2019 13:57:32 +0800 Subject: [PATCH] 5 --- app/portal/controller/IndexController.php | 1 - simplewind/cmf/controller/WeChatBaseController.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/portal/controller/IndexController.php b/app/portal/controller/IndexController.php index 652aa96..6cfcf5b 100644 --- a/app/portal/controller/IndexController.php +++ b/app/portal/controller/IndexController.php @@ -133,7 +133,6 @@ class IndexController extends WeChatBaseController if($data_id['status_id'] == 2){ //业务员分享 添加老师 $my_user_phone = Db::name('my_user') -> where('id',$data_id['my_user_id']) -> find(); - dump($my_user_phone);die; $data_inser['status'] = 3; $data_inser['uid'] = $uid; $data_inser['inviter_phone'] = $my_user_phone['phone']; diff --git a/simplewind/cmf/controller/WeChatBaseController.php b/simplewind/cmf/controller/WeChatBaseController.php index 88b5385..f2c40a6 100644 --- a/simplewind/cmf/controller/WeChatBaseController.php +++ b/simplewind/cmf/controller/WeChatBaseController.php @@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController */ public function checkWeChatUserLogin() { - $user = Db::name('user')->where('id',2)->find(); - cmf_update_current_user($user); + /*$user = Db::name('user')->where('id',2)->find(); + cmf_update_current_user($user);*/ $userId = cmf_get_current_user_id(); if (empty($userId)) { $config = [ -- libgit2 0.24.0