zhaojs
2023-06-21 60135ea375925e043f263e8ce47394cf69fcea7f
no message
已修改1个文件
3 ■■■■ 文件已修改
application/api/controller/User.php 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
application/api/controller/User.php
@@ -213,7 +213,8 @@
        $user = $this->auth->getUser();
        $mobile = $this->request->post('mobile');
        $captcha = $this->request->post('captcha');
        if (!$mobile || !$captcha) {
        $isyj=$this->request->post('isyj',false);
        if (!$mobile || (!$isyj&&!$captcha)) {
            $this->error(__('Invalid parameters'));
        }
        if (!Validate::regex($mobile, "^1\d{10}$")) {