Merge branch 'dev' of https://gitea.lihaink.cn/mkm/multi-store into dev
This commit is contained in:
commit
aa689ce02f
@ -77,7 +77,7 @@ class LoginController extends BaseApiController
|
|||||||
*/
|
*/
|
||||||
public function updateUser()
|
public function updateUser()
|
||||||
{
|
{
|
||||||
$params = (new WechatLoginValidate())->post()->goCheck("updateUser");
|
$params = $this->request->post();
|
||||||
$result = LoginLogic::updateUser($params, $this->userId);
|
$result = LoginLogic::updateUser($params, $this->userId);
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
return $this->fail(LoginLogic::getError());
|
return $this->fail(LoginLogic::getError());
|
||||||
|
@ -91,7 +91,7 @@ class WechatLoginValidate extends BaseValidate
|
|||||||
*/
|
*/
|
||||||
public function sceneUpdateUser()
|
public function sceneUpdateUser()
|
||||||
{
|
{
|
||||||
return $this->only(['mobile']);
|
return $this->only([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user