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

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

@@ -102,11 +102,13 @@ class Refund Extends Model
     const TH_TYPE_SELF_SEND=1;
     const TH_TYPE_SELF_FEE=2;
     const TH_TYPE_FREE=3;
+    const TH_TYPE_SENDER=4;
     public static $goodsTypes=[
         self::TH_TYPE_NONE=>'无需退货',
         self::TH_TYPE_SELF_SEND=>'自行邮寄',
         self::TH_TYPE_SELF_FEE=>'拍维修费',
         self::TH_TYPE_FREE=>'一年以内免费保修',
+        self::TH_TYPE_SENDER=>'上门取件',
     ];
     protected $autoWriteTimestamp=true;
     public function orderInfo(){
@@ -214,6 +216,7 @@ class Refund Extends Model
                     $refundConfig['type'] = [
                         self::REFUND_TYPE_HHBX => Arr::only(self::getGoodsTypes(), [
                             self::TH_TYPE_SELF_SEND,
+                            self::TH_TYPE_SENDER,
                         ]),
                     ];
                     $refundConfig['req_order'] = [
@@ -226,6 +229,7 @@ class Refund Extends Model
                     $refundConfig['type'] = [
                         self::REFUND_TYPE_ALL => Arr::only(self::getGoodsTypes(), [
                             self::TH_TYPE_SELF_SEND,
+                            self::TH_TYPE_SENDER,
                         ]),
                     ];
                     $refundConfig['req_order'] = [