|
@@ -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'];
|
|
|
//数据库是否已注册
|