From ba4d08cc8b84669f36ea4255dc68b20e643b4d63 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 9 Jul 2020 16:44:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=BA=BF=E4=B8=8A?= =?UTF-8?q?=E6=89=93=E6=AC=BE=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Payment/View/Payment/lists.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/Payment/View/Payment/lists.html b/Application/Payment/View/Payment/lists.html index b07a6e550..02176e57c 100644 --- a/Application/Payment/View/Payment/lists.html +++ b/Application/Payment/View/Payment/lists.html @@ -169,7 +169,9 @@
From ad2078cfbe2faec20b495989fe7e7c70d5dda6fc Mon Sep 17 00:00:00 2001 From: chenzhi <294767167@11qq.com> Date: Thu, 9 Jul 2020 19:33:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Payment/Controller/PaymentController.class.php | 3 ++- Application/Payment/View/Payment/transfer_set.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Application/Payment/Controller/PaymentController.class.php b/Application/Payment/Controller/PaymentController.class.php index dc2f46ffa..26b8e8ad6 100644 --- a/Application/Payment/Controller/PaymentController.class.php +++ b/Application/Payment/Controller/PaymentController.class.php @@ -364,7 +364,8 @@ class PaymentController extends BaseController { $mobile = $_REQUEST['mobile']; $verify = $_REQUEST['verify']; - if (!$this->checksafecode($this->admininfo['mobile'], $verify)) { + $flag = A("Public")->checksafecode($this->admininfo['mobile'], $verify); + if (!$flag ) { $this->error('验证码错误'); } $dbres = M("Kv")->where("`key`='payment_check_mobile'")->save(['value'=>$mobile]); diff --git a/Application/Payment/View/Payment/transfer_set.html b/Application/Payment/View/Payment/transfer_set.html index 0f355ce1e..ca4492d0f 100644 --- a/Application/Payment/View/Payment/transfer_set.html +++ b/Application/Payment/View/Payment/transfer_set.html @@ -74,7 +74,7 @@ $.ajax({ type:'post', dataType:'json', - data:'phone='+mobile, + data:'phone='+ym, url:'{:U("Public/telsafecode")}', success:function(data) { if (data.status ==1) {