diff --git a/app/controller/api/User.php b/app/controller/api/User.php index dda5ef3..7c0b954 100755 --- a/app/controller/api/User.php +++ b/app/controller/api/User.php @@ -104,6 +104,10 @@ 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;