master
wangxinglong 2022-06-10 11:36:32 +08:00
parent 4d22a1d063
commit 706d652ff9
2 changed files with 2 additions and 6 deletions

View File

@ -104,10 +104,6 @@ class User extends Base
$now = date('Y-m-d H:i:s');
if (!$account) {
if(empty($params['nickname'])||empty($params['headimgurl'] )){
return $this->json(4002, '登录失败');
}
// 自动注册
$inviterAid = 0;
$inviterParentAid = 0;

View File

@ -11,8 +11,8 @@ class User extends Validate
'password|密码' => 'require|min:4|max:16',
'code|小程序code' => 'require',
'nickname|昵称' => 'max:100',
'headimgurl|头像' => 'max:300',
'nickname|昵称' => 'require|max:100',
'headimgurl|头像' => 'require|max:300',
'country|国家' => 'max:100',
'province|省份' => 'max:100',
'city|城市' => 'max:100',