diff --git a/Application/Payment/Controller/PaymentController.class.php b/Application/Payment/Controller/PaymentController.class.php index 1b932f549..201c60d2e 100644 --- a/Application/Payment/Controller/PaymentController.class.php +++ b/Application/Payment/Controller/PaymentController.class.php @@ -424,8 +424,23 @@ class PaymentController extends BaseController { $id = $_REQUEST['id']; $remark = $_REQUEST['remark']; - + Vendor("Alipay2020/Fund"); + $fund = new \Fund(); + + // + $dbres = M("company_statement_info","tab_")->where("id='{$id}'")->find(); + $dbres['company_info'] = json_decode($v['company_info'],true); + + if($dbres['pay_status'] != 1 && $dbres['verify_status'] == 1){ + //执行打款 + // $payres = json_decode( json_encode( $object),true); + $payres["remark"] = $remark; + $dbres["payinfo"] = json_encode($payres,JSON_UNESCAPED_UNICODE); + $dbres["pay_status"]=1; + $dbres["pay_type"]=2; + } + M("company_statement_info","tab_")->save($dbres); $this->ajaxReturn(["success"=>"打款成功","data"=>[]]); # code... } @@ -441,10 +456,10 @@ class PaymentController extends BaseController $f = $CompanyInfo->where("pool_id = {$v} AND pay_status <> 1")->find(); if(empty($f)){ //全部完成 - $this->setOneVerifyStatus(3,"payment",$v); + $this->setOneVerifyStatus(4,"payment",$v); }else{ //打款中 - $this->setOneVerifyStatus(4,"payment",$v); + $this->setOneVerifyStatus(3,"payment",$v); } } } diff --git a/Application/Payment/View/Payment/showPayment.html b/Application/Payment/View/Payment/showPayment.html index 46602a798..1ec0caf14 100644 --- a/Application/Payment/View/Payment/showPayment.html +++ b/Application/Payment/View/Payment/showPayment.html @@ -121,7 +121,7 @@