This commit is contained in:
wangjinlei
2025-02-27 15:50:46 +08:00
parent f2af816d6a
commit f3d3ae04ca
4 changed files with 87 additions and 19 deletions

View File

@@ -690,7 +690,15 @@ class Preaccept extends Base
}
$order_info = $this->order_obj->where("article_id",$article_info['article_id'])->find();
if($order_info['pay_type']==2){
$order_info['paystation'] = $this->paystation_obj->where("ps_id",$order_info['ps_id'])->find();
$paystation = $this->paystation_obj->where("ps_id",$order_info['ps_id'])->find();
if($order_info['state']==0){
$res = object_to_array(json_decode(paystationLookup($paystation['transaction_id'])));
if(isset($res['result']['success'])&&$res['result']['success']){
$this->article_obj->where("article_id",$order_info['article_id'])->update(['is_buy'=>1]);
$this->order_obj->where("order_id",$order_info['order_id'])->update(['state'=>1]);
}
}
$order_info['paystation'] = $paystation;
}
$re['state'] = $order_info?$order_info['state']:0;
$re['fee'] = $journal_info['fee'];