|
@@ -60,6 +60,14 @@ class OrderOper
|
|
|
$order->ext = array_merge($order->ext, ['cancel_time' => time()]); // 取消时间
|
|
|
$order->allowField(true)->save();
|
|
|
|
|
|
+ //商城,未付款取消,冗余到bill表
|
|
|
+ Db::name('bill')->where([
|
|
|
+ 'table_name' => 'shopro_order',
|
|
|
+ 'table_id' => $order->id,
|
|
|
+ ])->update([
|
|
|
+ 'status' => 5, //已取消
|
|
|
+ ]);
|
|
|
+
|
|
|
Action::add($order, null, $user, $type, ($msg ?: $this->getOperText($type) . '取消订单'));
|
|
|
|
|
|
// 订单取消,退回库存,退回优惠券积分,等
|
|
@@ -100,6 +108,14 @@ class OrderOper
|
|
|
$order->ext = array_merge($order->ext, ['apply_refund_time' => time()]); // 申请时间
|
|
|
$order->save();
|
|
|
|
|
|
+ //商城,已支付未发货全额退款,冗余到bill表
|
|
|
+ Db::name('bill')->where([
|
|
|
+ 'table_name' => 'shopro_order',
|
|
|
+ 'table_id' => $order->id,
|
|
|
+ ])->update([
|
|
|
+ 'status' => 5, //已取消
|
|
|
+ ]);
|
|
|
+
|
|
|
Action::add($order, null, $user, $type, $this->getOperText($type) . '申请全额退款。' . $reason);
|
|
|
|
|
|
// 订单申请全额退款 orderApplyRefundAfter
|