工行支付

This commit is contained in:
xucong 2024-11-25 16:58:01 +08:00
parent 3f71b5cd56
commit 52108eeb16

@ -175,14 +175,6 @@ class Gh extends Api
if($abutment == null){
return JsonServer::error('支付失败');
}
if($type == ""){
$distributionPay = Db::name("distribution_pay")
->where("alog_id",$alog_id)
->find();
if($distributionPay == null){
return JsonServer::error('支付失败');
}
}
$checkPay = $this->payReturnCheck($abutment['out_trade_no']);
if($checkPay['return_msg'] === "SUCCESS"){
Db::name("abutment_log")
@ -206,14 +198,28 @@ class Gh extends Api
//分销审核通过之后才会解冻分账或者确认收货
public function CompleteAudit($id,$type=""){
$dmemberApply = Db::name("distribution_member_apply")
->where("id",$id)
->find();
$alog_id = $dmemberApply['alog_id'];
$abutment = Db::name("abutment_log")
->where("alog_id",$alog_id)
->where("state",0)
->find();
$alog_id = "";
if($type == ""){
$messsage = Db::name("distribution_member_apply")
->where("id",$id)
->find();
$alog_id = $messsage['alog_id'];
$abutment = Db::name("abutment_log")
->where("alog_id",$alog_id)
->where("state",1)
->find();
}
if($type == 1){
$abutment = Db::name("abutment_log")
->where("order_id",$id)
->where("state",1)
->find();
$alog_id = $messsage['alog_id'];
Db::name("order")
->where("id",$id)
->where("order_status",3)
->find();
}
$checkPay = $this->payReturnCheck($abutment['out_trade_no']);
if($checkPay['return_msg'] === "SUCCESS") {
$r = json_decode($checkPay['order_submit_act_output'], true);