From c6aed7b39a4e95a25e5bcac47a55ac98cb222b49 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期四, 29 六月 2023 14:34:32 +0800 Subject: [PATCH] Merge branch 'release/v1.1.3api发布' --- application/api/controller/User.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/application/api/controller/User.php b/application/api/controller/User.php index 80b9f1c..e2789af 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -214,7 +214,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}$")) { -- Gitblit v1.9.3