返回host
This commit is contained in:
@@ -36,7 +36,8 @@ class FeishuController
|
|||||||
'app_id' => $certificate['appId'],
|
'app_id' => $certificate['appId'],
|
||||||
'redirect_uri' => $certificate['rUrl'],
|
'redirect_uri' => $certificate['rUrl'],
|
||||||
'scope' => $certificate['scope'],
|
'scope' => $certificate['scope'],
|
||||||
'state' => $certificate['state'].'_'. $request->user['id']
|
'state' => $certificate['state'].'_'. $request->user['id'],
|
||||||
|
'url' => 'http://'.$request->host()
|
||||||
];
|
];
|
||||||
return Util::success($arr,trans('success'));
|
return Util::success($arr,trans('success'));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class UserController
|
|||||||
$result = $user;
|
$result = $user;
|
||||||
unset($result['password']);
|
unset($result['password']);
|
||||||
$result['token'] = $token;
|
$result['token'] = $token;
|
||||||
$result['feishu_openid'] = FeishuUser::where('id', $userId)->value('openid');
|
$result['feishu_openid'] = FeishuUser::where('id', $userId)->value('open_id');
|
||||||
|
|
||||||
if (Util::isEmpty($language)) {
|
if (Util::isEmpty($language)) {
|
||||||
User::where('id', $userId)
|
User::where('id', $userId)
|
||||||
|
|||||||
Reference in New Issue
Block a user