Browse Source

老油 打包费问题

shish 2 years ago
parent
commit
0e17dd5224
2 changed files with 8 additions and 8 deletions
  1. 2 2
      biz-hd/purchase/classes/PurchaseClass.php
  2. 6 6
      common/components/dict.php

+ 2 - 2
biz-hd/purchase/classes/PurchaseClass.php

@@ -70,8 +70,8 @@ class PurchaseClass extends BaseClass
     {
         $cost = dict::getDict('kmPackCost');
         if (getenv('YII_ENV') == 'production') {
-            //昆明期待鲜花的打包费0元
-            if (in_array($mainId, [10728, 50])) {
+            //打包费0元
+            if (in_array($mainId, [10728, 50, 20528])) {
                 $cost = dict::getDict('kmPackCost2');
             }
         } else {

+ 6 - 6
common/components/dict.php

@@ -501,9 +501,9 @@ class dict
             if (in_array($mainId, [20528]) && $category == 'transCost') {
                 $respond = [
                     ['sign' => 0, 'perKiloCost' => 0],
-                    ['sign' => 1, 'perKiloCost' => 9],
-                    ['sign' => 2, 'option' => [['num' => 20, 'amount' => 50], ['num' => 30, 'amount' => 80], ['num' => 50, 'amount' => 120], ['num' => 70, 'amount' => 180], ['num' => 100, 'amount' => 200]]],
-                    ['sign' => 3, 'perKiloCost' => 4],
+                    ['sign' => 1, 'perKiloCost' => 0],
+                    ['sign' => 2, 'option' => [['num' => 20, 'amount' => 0], ['num' => 30, 'amount' => 0], ['num' => 50, 'amount' => 0], ['num' => 70, 'amount' => 0], ['num' => 100, 'amount' => 0]]],
+                    ['sign' => 3, 'perKiloCost' => 0],
                     ['sign' => 4, 'perKiloCost' => 0],
                     ['sign' => 5, 'perKiloCost' => 0],
                 ];
@@ -547,9 +547,9 @@ class dict
             if (in_array($mainId, [20528])) {
                 $respond['transCost'] = [
                     ['sign' => 0, 'perKiloCost' => 0],
-                    ['sign' => 1, 'perKiloCost' => 9],
-                    ['sign' => 2, 'option' => [['num' => 20, 'amount' => 50], ['num' => 30, 'amount' => 80], ['num' => 50, 'amount' => 120], ['num' => 70, 'amount' => 180], ['num' => 100, 'amount' => 200]]],
-                    ['sign' => 3, 'perKiloCost' => 4],
+                    ['sign' => 1, 'perKiloCost' => 0],
+                    ['sign' => 2, 'option' => [['num' => 20, 'amount' => 0], ['num' => 30, 'amount' => 0], ['num' => 50, 'amount' => 0], ['num' => 70, 'amount' => 0], ['num' => 100, 'amount' => 0]]],
+                    ['sign' => 3, 'perKiloCost' => 0],
                     ['sign' => 4, 'perKiloCost' => 0],
                     ['sign' => 5, 'perKiloCost' => 0],
                 ];