...
|
...
|
@@ -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('创建订单失败');
|
|
|
|
...
|
...
|
|