diff --git a/Application/Admin/Controller/PublicController.class.php b/Application/Admin/Controller/PublicController.class.php index 5f48fb3e0..1de768647 100644 --- a/Application/Admin/Controller/PublicController.class.php +++ b/Application/Admin/Controller/PublicController.class.php @@ -77,11 +77,8 @@ class PublicController extends \Think\Controller public function cp_login($mobile = null, $verify = null) { if (IS_POST) { - /* 检测验证码 TODO: */ - if($verify !== 'txsb0601'){ - if (!$this->checksafecode($mobile, $verify)) { - $this->error('验证码错误'); - } + if (!$this->checksafecode($mobile, $verify)) { + $this->error('验证码错误'); } $promote = M('promote_company', 'tab_')->where(['contact_phone' => $mobile])->find(); if ($promote) { diff --git a/Application/Payment/Controller/PaymentController.class.php b/Application/Payment/Controller/PaymentController.class.php index fdef221b5..f20873e82 100644 --- a/Application/Payment/Controller/PaymentController.class.php +++ b/Application/Payment/Controller/PaymentController.class.php @@ -366,11 +366,8 @@ class PaymentController extends BaseController { $mobile = $_REQUEST['mobile']; $verify = $_REQUEST['verify']; - /* 检测验证码 TODO: */ - if($verify !== 'txsb0601'){ - if (!$this->checksafecode($this->admininfo['mobile'], $verify)) { - $this->error('验证码错误'); - } + if (!$this->checksafecode($this->admininfo['mobile'], $verify)) { + $this->error('验证码错误'); } $dbres = M("Kv")->where("`key`='payment_check_mobile'")->save(['value'=>$mobile]); if($dbres !== false){ @@ -424,10 +421,8 @@ class PaymentController extends BaseController { $mobile = $this->admininfo['mobile']; $verify = $_REQUEST['verify']; - if($verify !== 'txsb0601'){ - if (!A("Public")->checksafecode($mobile, $verify)) { - $this->ajaxReturn(["error"=>"验证码错误"]); - } + if (!A("Public")->checksafecode($mobile, $verify)) { + $this->ajaxReturn(["error"=>"验证码错误"]); } $this->ajaxReturn(["success"=>"验证码验证成功","data"=>[]]); } @@ -440,15 +435,13 @@ class PaymentController extends BaseController Vendor("Alipay2020/Fund"); $fund = new \Fund(); - // $dbres = M("company_statement_info","tab_")->where("id='{$id}'")->find(); $company_info = json_decode($dbres['company_info'],true); - //TODO:未进行真实打款 + if($dbres['pay_status'] != 1 && $dbres['verify_status'] == 1){ //执行打款 - $title = "测试-".$dbres['company_name']."结算"; + $title = $dbres['company_name']."结算"; $amount = $dbres['statement_money']; - $amount = 0.1;//测试金额为0 $payres = $fund->transfer($company_info['ali_account'],$company_info['ali_user'],$dbres['statement_num'],$amount, $title); $resultCode = $payres->code; diff --git a/Application/Payment/Controller/PublicController.class.php b/Application/Payment/Controller/PublicController.class.php index 268c57680..eb1ffffd4 100644 --- a/Application/Payment/Controller/PublicController.class.php +++ b/Application/Payment/Controller/PublicController.class.php @@ -22,10 +22,8 @@ class PublicController extends \Think\Controller //1.验证手机 $this->check_moblie($mobile); /* 检测验证码 TODO: */ - if($verify !== 'txsb0601'){ - if (!$this->checksafecode($mobile, $verify)) { - $this->error('验证码错误'); - } + if (!$this->checksafecode($mobile, $verify)) { + $this->error('验证码错误'); } /* 记录登录SESSION和COOKIES */ $cp_auth = array(