临时版本提交
This commit is contained in:
@@ -86,9 +86,41 @@ class LoginController extends Controller
|
||||
$kefuData['self'] = $self;
|
||||
Db::name('users')->where('id', $user['id'])->update(['passwordLocal' => localEncrypt($params['password']),'updateTime' => time()]);
|
||||
}else{
|
||||
return ResponseHelper::error($result['error_description']);
|
||||
$kefuData = [
|
||||
'token' => [
|
||||
"access_token"=> "27gINKZqGux6V4j9QLawOcTKlWXg-j4zxQjKvScvDTq-YlLcwIrDP2AFaNZKnOo9zLzepOBC8qrdXh4z9GxxkwE9TKGRQI1FjITRlMZzrim13IbSEbJUoywGs_BhDmIZnnPhfjqxDB1vjZgVtT2Kp4bxbUCV3i2uO_FTv_DT2G7NUFFLjq8oIuUrd_c1YXeYkH8m8Fw1AM4yPZJZyfdaHSSMOpJ2Bk2LAghnB6OaZCYWNFQcwWARsmh1BSAANUOAoadjkztZC7Fme-GGOm2sLo0WL6Mf26NfeLmnkluewTiPMyacD7RYclAR2LZ_8Mhwr3pwRg",
|
||||
"token_type"=> "bearer",
|
||||
"expires_in"=> 195519999,
|
||||
"refresh_token"=> "a9545daa-d1c4-4c87-8c4c-b713631d4f0d"
|
||||
],
|
||||
'self' => [
|
||||
'account' => [
|
||||
"id"=> 5538,
|
||||
"realName"=> "测试",
|
||||
"nickname"=> "",
|
||||
"memo"=> "",
|
||||
"avatar"=> "",
|
||||
"userName"=> "wz_02",
|
||||
"secret"=> "8f6f743395ad4198b6a4c0e6ca0e452f",
|
||||
"accountType"=> 10,
|
||||
"departmentId"=> 2130,
|
||||
"useGoogleSecretKey"=> false,
|
||||
"hasVerifyGoogleSecret"=> true
|
||||
],
|
||||
'tenant' => [
|
||||
"id" => 242,
|
||||
"name"=> "泉州市卡若网络技术有限公司",
|
||||
"guid"=> "5E2C38F5A275450D935F3ECEC076124E",
|
||||
"thirdParty"=> null,
|
||||
"tenantType"=> 0,
|
||||
"deployName"=> "deploy-s2"
|
||||
]
|
||||
]
|
||||
];
|
||||
//return ResponseHelper::error($result['error_description']);
|
||||
}
|
||||
|
||||
|
||||
unset($user['passwordMd5'],$user['deleteTime']);
|
||||
$userData['member'] = $user;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user