Commit 16cbd3b5 authored by wanjilong's avatar wanjilong

add: 适配ping++支付结构

parent 03af028f
...@@ -20,7 +20,10 @@ class OrderController extends Base ...@@ -20,7 +20,10 @@ class OrderController extends Base
$paySrv = new PayService(); $paySrv = new PayService();
$ret = $paySrv->do_pay($order_id, $user_id); $ret = $paySrv->do_pay($order_id, $user_id);
$this->success(['result'=>$ret]); //兼容C端客户端支付,调整返回结构,ping++ 返回 order,原生:微信、支付宝返回charge
$result = [];
$result[] = ['k'=>'order', 'v'=>$ret];
$this->success(['result'=>$result]);
} }
public function refundAction() { public function refundAction() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment