作者 jinglong
1 个管道 的构建 通过 耗费 4 秒

付款成功,返回订单id

... ... @@ -57,7 +57,7 @@ class Pay extends Api
$status = $this->order_status;
$orderModel = new Order();
$orderModel->where(['uid'=>$this->uid,'order_sn'=>$order_sn,'status'=>$status[0]])->update(['status'=>$status[2]]);
$this->success('成功');
$this->success('成功',['order_id'=>$res['id']]);
... ... @@ -167,7 +167,7 @@ class Pay extends Api
//写入订单
$res = Common::createOrder($data,$pay_order_sn,$this->uid);
if($res){
$this->success('成功');
$this->success('成功',['order_id'=>$res['order_id']]);
}
$this->error('创建订单失败');
... ...