更新用户绑定关系

This commit is contained in:
yaooo 2023-11-13 16:15:43 +08:00
parent 81e7bce99f
commit f33290b57d
1 changed files with 2 additions and 5 deletions

View File

@ -121,16 +121,13 @@ class UserLogic extends BaseLogic
'app_id' => $params['app_id'], 'app_id' => $params['app_id'],
'user_id' => $userinfo['user_id'], 'user_id' => $userinfo['user_id'],
'system_user_id' => $params['system_user_id'], 'system_user_id' => $params['system_user_id'],
'phone' => $userinfo['phone'], 'phone' => $userinfo['phone'],
'create_time' => time(), 'create_time' => time(),
'update_time' => time() 'update_time' => time()
]); ]);
} else { } else {
SystemUser::where('id', $systemUser['id'])->update([ SystemUser::where('id', $systemUser['id'])->update([
'app_id' => $params['app_id'], 'phone' => $userinfo['phone'],
'user_id' => $userinfo['user_id'],
'system_user_id' => $params['system_user_id'],
'phone' => $userinfo['phone'],
'create_time' => time(), 'create_time' => time(),
'update_time' => time() 'update_time' => time()
]); ]);