From a629654ccb23c001719a320d53b44355927c927f Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 22 Jun 2020 18:01:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/WithdrawController.class.php | 7 +++++-- .../Home/View/default/Withdraw/index.html | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Application/Home/Controller/WithdrawController.class.php b/Application/Home/Controller/WithdrawController.class.php index d31682cc3..30a300ca2 100644 --- a/Application/Home/Controller/WithdrawController.class.php +++ b/Application/Home/Controller/WithdrawController.class.php @@ -37,6 +37,7 @@ class WithdrawController extends BaseController $map["promote.id"] = get_pid(); $map['tab_company_statement_info.company_type'] = ['in',"1,2"]; + $map['tab_company_statement_info.verify_status'] = 1; if ($_REQUEST['pay_status'] || $_REQUEST['pay_status'] == '0') { $map['pay_status'] = $_REQUEST['pay_status']; @@ -140,11 +141,12 @@ class WithdrawController extends BaseController $savedata["pay_time"]=time(); } else { - $this->poolCount($dbres['pool_id']); + // $this->poolCount($dbres['pool_id']); $this->ajaxReturn(["msg"=>"已经打款过","data"=>$dbres,"status"=>0]); } - $this->poolCount($dbres['pool_id']); + M("company_statement_info","tab_")->save($savedata); + // $this->poolCount($dbres['pool_id']); if ($savedata["pay_status"] == -1) { $this->ajaxReturn(["msg"=>"提现失败","data"=>$dbres,"status"=>0]); @@ -159,6 +161,7 @@ class WithdrawController extends BaseController */ public function poolCount($poolid){ $f = M("company_statement_info","tab_")->field("id")->where("pool_id = {$poolid} AND pay_status <> 1")->find(); + if(isset($f['id'])){ //打款中 $this->setOneVerifyStatus(3,"payment",$poolid); diff --git a/Application/Home/View/default/Withdraw/index.html b/Application/Home/View/default/Withdraw/index.html index b7728142f..ca094517c 100644 --- a/Application/Home/View/default/Withdraw/index.html +++ b/Application/Home/View/default/Withdraw/index.html @@ -327,6 +327,7 @@ data: { id:id }, success: function (result) { layer.msg(result.msg); + poolCount(result.data.pool_id); setTimeout(function () { location.reload(); }, 1000); @@ -339,6 +340,22 @@ }); + function poolCount(pool_id) { + + $.ajax({ + async: false, + url: "{:U('poolCount')}", + type: "POST", + dataType: "json", + data: { poolid:pool_id }, + success: function (result) { + }, + error: function () { + } + }); + + } + $('.i_cancel').click(function () { location.reload(); });