24 lines
660 B
PHP
Executable File
24 lines
660 B
PHP
Executable File
<?php
|
|
|
|
namespace app\api\controller;
|
|
|
|
use app\api\logic\UserLogic;
|
|
use app\api\validate\PayPasswordValidate;
|
|
use app\common\basics\Api;
|
|
use app\common\enum\NoticeEnum;
|
|
use app\common\server\JsonServer;
|
|
|
|
class PayPassword extends Api
|
|
{
|
|
public function forget()
|
|
{
|
|
$post = $this->request->post();
|
|
$post['message_key'] = NoticeEnum::GET_BACK_MOBILE_NOTICE;
|
|
(new PayPasswordValidate())->goCheck('', $post);
|
|
$result = UserLogic::resetPayPassword($post);
|
|
if (false === $result) {
|
|
return JsonServer::error(UserLogic::getError());
|
|
}
|
|
return JsonServer::success('修改成功', $result);
|
|
}
|
|
} |