moonsflyer 5 月之前
父节点
当前提交
c532deeda1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/shopapi/logic/AfterSaleLogic.php

+ 2 - 2
app/shopapi/logic/AfterSaleLogic.php

@@ -236,7 +236,7 @@ class AfterSaleLogic extends BaseLogic
             $refund_total_amount = $orderGoods['total_pay_price'] - $orderGoods['express_price'];
             $refund_total_amount = $orderGoods['total_pay_price'] - $orderGoods['express_price'];
         }
         }
 
 
-        Order::update([ 'is_after_sale' => 1 ], [
+        Order::update([ 'is_after_sale' => 1 , 'after_sale_status' => 1], [
             [ 'id', '=', $orderGoods['order_id'] ],
             [ 'id', '=', $orderGoods['order_id'] ],
         ]);
         ]);
         $params['refund_image'] = isset($params['refund_image']) ? FileService::setFileUrl($params['refund_image']) : '';
         $params['refund_image'] = isset($params['refund_image']) ? FileService::setFileUrl($params['refund_image']) : '';
@@ -324,7 +324,7 @@ class AfterSaleLogic extends BaseLogic
                 throw new \think\Exception('售后处理中,不允许撤销申请');
                 throw new \think\Exception('售后处理中,不允许撤销申请');
             }
             }
 
 
-            Order::update([ 'is_after_sale' => 0 ], [
+            Order::update([ 'is_after_sale' => 0,'after_sale_status' => 0 ], [
                 [ 'id', '=', $afterSale['order_id'] ],
                 [ 'id', '=', $afterSale['order_id'] ],
             ]);
             ]);