feat: 修改用户注册逻辑,增加默认值

This commit is contained in:
mkm 2024-06-17 10:07:30 +08:00
parent 0286d428e6
commit 950cd2fe3a

View File

@ -82,7 +82,7 @@ class UserLogic extends BaseLogic
'account' => $params['mobile'], 'account' => $params['mobile'],
'password' => $password, 'password' => $password,
'mobile' => $params['mobile'], 'mobile' => $params['mobile'],
'user_ship' => $params['user_ship'], 'user_ship' => $params['user_ship']??0,
]; ];
$res=User::create($data); $res=User::create($data);