|
|
|
@ -425,7 +425,22 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|