$params['channel'], 'sn' => create_user_sn(), 'nickname' => $params['mobile'], 'avatar' => $defaultAvatar, 'mobile' => $params['mobile'], 'account' => $params['mobile'], 'password' => $password, ]; $user = User::create($data); return true; } catch(\Exception $e) { self::setError($e->getMessage()); return false; } } }