This commit is contained in:
aozhiwei 2021-12-07 17:16:37 +08:00
parent 732713f6e5
commit 52709eda7a
2 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit 3fc9e3c7657803eed51f7c2ee34af6185855409b Subproject commit 119990eeeac4281031895c17c9983b523699d757

View File

@ -166,11 +166,11 @@ class UserController extends BaseAuthedController {
return; return;
} }
$nameService = new services\NameService(); $nameService = new services\NameService();
if (!$nameService->verifyNameSign($param1, $param2)){ if (!$nameService->verifyNameSign($name, $nameSign)){
$this->_rspErr(1, '参数错误名,签名校验失败'); $this->_rspErr(1, '参数错误名,签名校验失败');
return; return;
} }
if (!$nameService->nameUsed($param1)){ if ($nameService->nameUsed($name)){
$this->_rspErr(2, '名字已被占用'); $this->_rspErr(2, '名字已被占用');
return; return;
} }
@ -178,11 +178,11 @@ class UserController extends BaseAuthedController {
$this->_rspErr(1, '参数错误名,sex不合法'); $this->_rspErr(1, '参数错误名,sex不合法');
return; return;
} }
if (User::isValidHeadId($userInfo, $headId)) { if (!User::isValidHeadId($userInfo, $headId)) {
$this->_rspErr(1, '参数错误名,head_id不合法'); $this->_rspErr(1, '参数错误名,head_id不合法');
return; return;
} }
if (User::isValidHeadFrame($userInfo, $headFrame)) { if (!User::isValidHeadFrame($userInfo, $headFrame)) {
$this->_rspErr(1, '参数错误名,head_frame不合法'); $this->_rspErr(1, '参数错误名,head_frame不合法');
return; return;
} }
@ -206,7 +206,7 @@ class UserController extends BaseAuthedController {
public function update() public function update()
{ {
$userInfo = $this->_ormGetUserInfo(); $userInfo = $this->_getOrmUserInfo();
$validFields = array( $validFields = array(
'sex' => array( 'sex' => array(
'field_name' => 'sex', 'field_name' => 'sex',