diff --git a/app/api/logic/LoginLogic.php b/app/api/logic/LoginLogic.php index 9e966f35..83ac3334 100644 --- a/app/api/logic/LoginLogic.php +++ b/app/api/logic/LoginLogic.php @@ -31,7 +31,7 @@ class LoginLogic extends BaseLogic try { //添加到用户表 $user = User::create([ - 'admin_id' => $admin['id'], + 'admin_id' => 0, 'phone' => $params['phone'], 'nick_name' => '用户'.$params['phone'], 'password' => $userPassword,