1
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user