shish 5 anni fa
parent
commit
4cf3c25878

+ 5 - 1
app-pt/controllers/BaseController.php

@@ -25,7 +25,11 @@ class BaseController extends PublicController
         }
 
         //纯彩花艺临时开放花材管理权限
-        if ($staffId == 4) {
+        $limitId = 4;
+        if (getenv('YII_ENV') == 'production') {
+            $limitId = 2;
+        }
+        if ($staffId == $limitId) {
             $currentRoute = $this->id . '/' . $action->id;
             $arr = [
                 'staff/login-detail',

+ 1 - 1
biz-ghs/order/classes/PurchaseOrderClass.php

@@ -62,7 +62,7 @@ class PurchaseOrderClass extends BaseClass
                 $smallNum += $v['smallNum'] ?? 0;
                 $totalItemPrice = bcadd($totalItemPrice, $v['itemPrice'], 2);
                 $ghsItemInfoMap[$v['productId']] = $v;
-                if (getenv('YII_ENV', 'local') == 'production') {
+                if (getenv('YII_ENV') == 'production') {
                     $weight = $v['weight'] ?? 0;
                 } else {
                     $weight = 0.6;