瀏覽代碼

sunguidong

zhangguidong 2 年之前
父節點
當前提交
2ce735f3d4
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      application/common/model/User.php

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

@@ -69,9 +69,9 @@ class User Extends Model
                     Db::commit();
                     $userId =$user->id;
                     $use =  Db::name('store_member')->where('id',$userId)->find();
-//                    $url = 'https://xiangqinim.zhousi.hdlkeji.com/addons/fastim/api.user/createUser?username='.$use['nickname'].'&avatar='.$use['headimg'].'&id='.$userId;
-//                    $im_id = curlRequest($url);
-//                    Db::name('store_member')->where('id',$userId)->update(['im_id'=>$im_id]);
+                    $url = 'https://xiangqinim.zhousi.hdlkeji.com/addons/fastim/api.user/createUser?username='.$use['nickname'].'&avatar='.$use['headimg'].'&id='.$userId;
+                    $im_id = curlRequest($url);
+                    Db::name('store_member')->where('id',$userId)->update(['im_id'=>$im_id]);
                     $token = JWT::encode($use,config('jwt.key'));
                     $result['token'] = $token;
                     $result['vip_level'] = $user['vip_level'];