取消订单
This commit is contained in:
parent
4e9e6d0410
commit
f966f07843
@ -316,7 +316,7 @@ class OrderController extends BaseApiController
|
||||
StoreOrder::where(['id' => $order_id, 'uid' => Request()->userId])->update($_order);
|
||||
}
|
||||
}
|
||||
$result = PaymentLogic::pay($pay_type, 'wechat_common', $order, $this->userInfo['terminal'], $redirectUrl);
|
||||
$result = PaymentLogic::pay($pay_type, 'wechat_common', $order, $this->userInfo['terminal']??1, $redirectUrl);
|
||||
if (PaymentLogic::hasError()) {
|
||||
return $this->fail(PaymentLogic::getError());
|
||||
}
|
||||
@ -405,7 +405,7 @@ class OrderController extends BaseApiController
|
||||
];
|
||||
$order = StoreOrder::where($where)->find();
|
||||
if ($order) {
|
||||
$data = ['data' => $value, 'delete_time' => time()];
|
||||
$data = ['cancle_reason' => $value, 'delete_time' => time()];
|
||||
StoreOrder::where($where)->update($data);
|
||||
return $this->success('取消成功');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user