xieruidong 2 years ago
parent
commit
035cdce8ff
1 changed files with 5 additions and 4 deletions
  1. 5 4
      application/common/model/Refund.php

+ 5 - 4
application/common/model/Refund.php

@@ -152,7 +152,7 @@ class Refund Extends Model
             ];
             $refundConfig['reason']=array_values(Refund::getReasons());
             $refundConfig['req_amount']=1;
-            $refundConfig['req_order']=null;
+            $refundConfig['req_order']=0;
         }
         #已发货
         elseif(in_array($order['status'],[$order::S_WAIT_REC,$order::S_OVER])){
@@ -166,12 +166,12 @@ class Refund Extends Model
                 ];
                 $refundConfig['reason']=array_values(Refund::getReasons());
                 $refundConfig['req_amount']=1;
-                $refundConfig['req_order']=null;
+                $refundConfig['req_order']=0;
             }else{
                 $refundConfig['refund_type']=[
                     self::REFUND_TYPE_HHBX=>'换货保修',
                 ];
-                $refundConfig['req_order']=null;
+                $refundConfig['req_order']=0;
                 #一年内
                 if(time()<strtotime('+1year',$order['send_time'])){
                     $refundConfig['type']=[
@@ -181,7 +181,8 @@ class Refund Extends Model
                     $refundConfig['type']=[
                         self::TH_TYPE_SELF_FEE=>'拍维修费',
                     ];
-                    $refundConfig['req_order']=Goods::getFixGoods();
+                    $refundConfig['req_order']=1;
+                    $refundConfig['req_order_goods']=Goods::getFixGoods();
                 }
                 $refundConfig['reason']=array_values(Refund::getReasons());
                 $refundConfig['req_amount']=0;