Răsfoiți Sursa

价格管理

shish 3 ani în urmă
părinte
comite
466c1c8fae
1 a modificat fișierele cu 16 adăugiri și 0 ștergeri
  1. 16 0
      biz-ghs/order/classes/OrderClass.php

+ 16 - 0
biz-ghs/order/classes/OrderClass.php

@@ -924,6 +924,22 @@ class OrderClass extends BaseClass
     //云打印 ssh 20210709
     //云打印 ssh 20210709
     public static function onlinePrint($orderInfo, $showPrice = 1)
     public static function onlinePrint($orderInfo, $showPrice = 1)
     {
     {
+
+        if (getenv('YII_ENV') == 'production') {
+            //丽子鲜花,客户线上下单,小票上不显示价格
+            if (isset($orderInfo->shopId) && $orderInfo->shopId == 1527) {
+                if ($orderInfo->onlinePay == 2) {
+                    $showPrice = 0;
+                }
+            }
+        } else {
+            if (isset($orderInfo->shopId) && $orderInfo->shopId == 36523) {
+                if ($orderInfo->onlinePay == 2) {
+                    $showPrice = 0;
+                }
+            }
+        }
+
         $showItem = OrderClass::getShowItem(true, $orderInfo);
         $showItem = OrderClass::getShowItem(true, $orderInfo);
 
 
         $customId = $orderInfo['customId'] ?? 0;
         $customId = $orderInfo['customId'] ?? 0;