gorden 5 ماه پیش
والد
کامیت
df09a82f16
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      app/admin/controller/order/RefundController.php

+ 2 - 1
app/admin/controller/order/RefundController.php

@@ -577,7 +577,7 @@ class RefundController extends Curd
             $orderDiscountJson = json_decode($order->order_discount_json, true);
         }
         try {
-            $orderDiscountJson[date('YH:i:s H:i:s')] = [
+            $orderDiscountJson[date('Y-m-d H:i:s')] = [
                 'coupon_id' => null,
                 'coupon_value' => $amount,
                 'coupon_classify' => '退款',
@@ -586,6 +586,7 @@ class RefundController extends Curd
 
             $order->order_discount_json = json_encode($orderDiscountJson, JSON_UNESCAPED_UNICODE);
             $order->order_is_complete = 'R';
+            $order->order_category = 'RETURN';
 //            $order->order_amount_pay = $order->order_amount_pay - $amount;
             $order->save();
         } catch (\Exception $e) {