songxingwei il y a 3 ans
Parent
commit
8c52fa9546
1 fichiers modifiés avec 8 ajouts et 8 suppressions
  1. 8 8
      application/common/model/User.php

+ 8 - 8
application/common/model/User.php

@@ -46,14 +46,14 @@ class User Extends Model
 
         //数据库是否已注册
 //        $user = Db::name('User')->where('openid','oo7E85LrD0ovt7hbz4sZGrf-_flA')->find();
-        $user = Db::name('User')->where('id',7)->find();
-        if ($user){
-            $user['UserIformationPerfect'] =  self::checkUserIformationPerfect($user['id']) ? true : false;
-            app()->session->set('us', $user);
-            //注册环信
-           // Common::huanxin_zhuce('huxuanmao-'.$user['id'],$user['nickname']);
-            return Common::return_success('授权成功',$user);
-        }
+//        $user = Db::name('User')->where('id',53)->find();
+//        if ($user){
+//            $user['UserIformationPerfect'] =  self::checkUserIformationPerfect($user['id']) ? true : false;
+//            app()->session->set('us', $user);
+//            //注册环信
+//           // Common::huanxin_zhuce('huxuanmao-'.$user['id'],$user['nickname']);
+//            return Common::return_success('授权成功',$user);
+//        }
         if (!empty($session_key['session_key'])) {
             $openid = $session_key['openid'];
             //数据库是否已注册