application/api/controller/User.php | ●●●●● 补丁 | 查看 | 原始文档 | 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}$")) {