settter
parent
cefc1357ef
commit
c745667d53
|
@ -39,7 +39,7 @@ class User extends Base
|
||||||
{
|
{
|
||||||
$params = [
|
$params = [
|
||||||
'code' => $this->request->param('code', ''),
|
'code' => $this->request->param('code', ''),
|
||||||
'nick_name' => $this->request->param('nickName', ''),
|
'nick_name' => filterEmoji($this->request->param('nickName', '')),
|
||||||
'avatar_url' => $this->request->param('avatarUrl', ''),
|
'avatar_url' => $this->request->param('avatarUrl', ''),
|
||||||
'gender' => $this->request->param('gender/d', 0),
|
'gender' => $this->request->param('gender/d', 0),
|
||||||
'real_name' => $this->request->param('real_name/s', '',"trim"),
|
'real_name' => $this->request->param('real_name/s', '',"trim"),
|
||||||
|
@ -88,7 +88,7 @@ class User extends Base
|
||||||
'create_time' => $nowDate,
|
'create_time' => $nowDate,
|
||||||
'login_time' => $nowDate,
|
'login_time' => $nowDate,
|
||||||
'type' => Account::type_consumer, // 默认为普通消费者
|
'type' => Account::type_consumer, // 默认为普通消费者
|
||||||
'nick_name' => filterEmoji($params['nick_name']) ?: generateDefaultNickName(),
|
'nick_name' => $params['nick_name'] ?: generateDefaultNickName(),
|
||||||
'avatar_url' => $params['avatar_url'] ?: Account::DEFAULT_AVATAR,
|
'avatar_url' => $params['avatar_url'] ?: Account::DEFAULT_AVATAR,
|
||||||
'gender' => $params['gender'],
|
'gender' => $params['gender'],
|
||||||
'real_name' => $params['real_name'],
|
'real_name' => $params['real_name'],
|
||||||
|
|
Loading…
Reference in New Issue