永星合并

master
chenzhi 4 years ago
parent 0c4b96dd56
commit f321c6259d

@ -115,11 +115,12 @@ class WithdrawController extends BaseController
$dbres = M("company_statement_info","tab_")->where("id='{$id}'")->find(); $dbres = M("company_statement_info","tab_")->where("id='{$id}'")->find();
// $this->ajaxReturn(["msg"=>"打款成功","data"=>$dbres,"status"=>1]);die(); // $this->ajaxReturn(["msg"=>"打款成功","data"=>$dbres,"status"=>1]);die();
$company_info = json_decode($dbres['company_info'],true); $company_info = json_decode($dbres['company_info'],true);
//TODO:未进行真实打款
if($dbres['pay_status'] != 1 && $dbres['verify_status'] == 1){ if($dbres['pay_status'] != 1 && $dbres['verify_status'] == 1){
//执行打款 //执行打款
$title = "测试-".$dbres['company_name']."结算"; $title = "测试-".$dbres['company_name']."结算";
$amount = $dbres['statement_money']; $amount = $dbres['statement_money'];
//TODO:线上要关闭这个
$amount = 0.1;//测试金额为0 $amount = 0.1;//测试金额为0
$payres = $fund->transfer($company_info['ali_account'],$company_info['ali_user'],$dbres['statement_num'],$amount, $title); $payres = $fund->transfer($company_info['ali_account'],$company_info['ali_user'],$dbres['statement_num'],$amount, $title);
$resultCode = $payres->code; $resultCode = $payres->code;

Loading…
Cancel
Save