|
@@ -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'];
|