|
@@ -323,6 +323,11 @@ class AfterSaleLogic extends BaseLogic
|
|
|
if(!in_array($afterSale->sub_status,AfterSaleEnum::ALLOW_CANCEL)) {
|
|
if(!in_array($afterSale->sub_status,AfterSaleEnum::ALLOW_CANCEL)) {
|
|
|
throw new \think\Exception('售后处理中,不允许撤销申请');
|
|
throw new \think\Exception('售后处理中,不允许撤销申请');
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ Order::update([ 'is_after_sale' => 0 ], [
|
|
|
|
|
+ [ 'id', '=', $afterSale['order_id'] ],
|
|
|
|
|
+ ]);
|
|
|
|
|
+
|
|
|
$afterSale->status = AfterSaleEnum::STATUS_FAIL;
|
|
$afterSale->status = AfterSaleEnum::STATUS_FAIL;
|
|
|
$afterSale->sub_status = AfterSaleEnum::SUB_STATUS_BUYER_CANCEL_AFTER_SALE;
|
|
$afterSale->sub_status = AfterSaleEnum::SUB_STATUS_BUYER_CANCEL_AFTER_SALE;
|
|
|
$afterSale->save();
|
|
$afterSale->save();
|