shish 3 年 前
コミット
ce58399cc0
1 ファイル変更18 行追加18 行削除
  1. 18 18
      common/components/dict.php

+ 18 - 18
common/components/dict.php

@@ -9,17 +9,18 @@ class dict
 
     public static $data = [
         //昆明基地包装费计算
+//        'kmPackCost' => [
+//            ['num' => 10, 'amount' => 15],
+//            ['num' => 25, 'amount' => 25],
+//            ['num' => 30, 'amount' => 30],
+//            ['num' => 40, 'amount' => 35],
+//            ['num' => 50, 'amount' => 40],
+//            ['num' => 60, 'amount' => 45],
+//            ['num' => 80, 'amount' => 65],
+//            ['num' => 100, 'amount' => 80],
+//        ],
+        //测试环境
         'kmPackCost' => [
-            ['num' => 10, 'amount' => 15],
-            ['num' => 25, 'amount' => 25],
-            ['num' => 30, 'amount' => 30],
-            ['num' => 40, 'amount' => 35],
-            ['num' => 50, 'amount' => 40],
-            ['num' => 60, 'amount' => 45],
-            ['num' => 80, 'amount' => 65],
-            ['num' => 100, 'amount' => 80],
-        ],
-        'kmPackCostDev' => [
             ['num' => 10, 'amount' => 0.15],
             ['num' => 25, 'amount' => 0.25],
             ['num' => 30, 'amount' => 0.3],
@@ -40,13 +41,14 @@ class dict
             'hk' => 3,
         ],
         //重量计算标准,冷链物流中,40公斤以下小件,60公斤以下中件,100公斤以下大件
+//        'transCost' => [
+//            ['sign' => 0, 'perKiloCost' => 5],
+//            ['sign' => 1, 'perKiloCost' => 9],
+//            ['sign' => 2, 'option' => [['num' => 40, 'amount' => 50], ['num' => 60, 'amount' => 100], ['num' => 100, 'amount' => 200]]],
+//            ['sign' => 3, 'perKiloCost' => 4],
+//        ],
+        //测试环境
         'transCost' => [
-            ['sign' => 0, 'perKiloCost' => 5],
-            ['sign' => 1, 'perKiloCost' => 9],
-            ['sign' => 2, 'option' => [['num' => 40, 'amount' => 50], ['num' => 60, 'amount' => 100], ['num' => 100, 'amount' => 200]]],
-            ['sign' => 3, 'perKiloCost' => 4],
-        ],
-        'transCostDev' => [
             ['sign' => 0, 'perKiloCost' => 0.05],
             ['sign' => 1, 'perKiloCost' => 0.09],
             ['sign' => 2, 'option' => [['num' => 40, 'amount' => 0.05], ['num' => 60, 'amount' => 0.1], ['num' => 100, 'amount' => 0.2]]],
@@ -464,8 +466,6 @@ class dict
             }
         }
         if (getenv('YII_ENV') != 'production') {
-            $respond['kmPackCost'] = $respond['kmPackCostDev'];
-            $respond['transCost'] = $respond['transCostDev'];
             $respond['hdMiniMessage'] = $respond['hdMiniMessageDev'];
         }
         return $respond;