shish 2 年之前
父节点
当前提交
47ffa01d6f
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      common/components/dict.php

+ 4 - 4
common/components/dict.php

@@ -498,7 +498,7 @@ class dict
 
         if (getenv('YII_ENV') == 'production') {
             //老油云漫梦金鹏的德邦不需要收运费,搜索关键词dbNoFee
-            if ($mainId == 20528 && $category == 'transCost') {
+            if (in_array($mainId, [20528]) && $category == 'transCost') {
                 $respond = [
                     ['sign' => 0, 'perKiloCost' => 0],
                     ['sign' => 1, 'perKiloCost' => 9],
@@ -510,7 +510,7 @@ class dict
             }
         } else {
             //石头花艺的德邦不需要收运费,搜索关键词dbNoFee
-            if ($mainId == 644 && $category == 'transCost') {
+            if (in_array($mainId, [644]) && $category == 'transCost') {
                 $respond = [
                     ['sign' => 0, 'perKiloCost' => 0],
                     ['sign' => 1, 'perKiloCost' => 9],
@@ -544,7 +544,7 @@ class dict
 
         if (getenv('YII_ENV') == 'production') {
             //老油云漫梦金鹏的德邦不需要收运费,搜索关键词dbNoFee
-            if ($mainId == 20528) {
+            if (in_array($mainId, [20528])) {
                 $respond['transCost'] = [
                     ['sign' => 0, 'perKiloCost' => 0],
                     ['sign' => 1, 'perKiloCost' => 9],
@@ -556,7 +556,7 @@ class dict
             }
         } else {
             //石头花艺的德邦不需要收运费,搜索关键词dbNoFee
-            if ($mainId == 644) {
+            if (in_array($mainId, [644])) {
                 $respond['transCost'] = [
                     ['sign' => 0, 'perKiloCost' => 0],
                     ['sign' => 1, 'perKiloCost' => 9],