|
@@ -913,6 +913,9 @@ class ServicesController extends Curd
|
|
|
}
|
|
|
$this->changeOrderCouponStatus($couponUseJson, 'WAITING');
|
|
|
|
|
|
+ // 清除支付记录,恢复账户金额
|
|
|
+// $this->restoreAccount($params['pay_detail_item']);
|
|
|
+
|
|
|
return json_throw(2001, '支付异常', ['order_id' => $params['orderId']]);
|
|
|
}
|
|
|
_syslog("订单", "创建订单成功");
|
|
@@ -932,6 +935,15 @@ class ServicesController extends Curd
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public function restoreAccount($payDetailItem)
|
|
|
+ {
|
|
|
+ foreach ($payDetailItem as $item){
|
|
|
+ if ($item['order_status_payment'] == 'SUCCESS'){
|
|
|
+// if ($item[''])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public function pay(Request $request)
|
|
|
{
|
|
|
$params = $request->post();
|