Ver Fonte

快捷开单

shish há 7 meses atrás
pai
commit
d941e55406
1 ficheiros alterados com 26 adições e 23 exclusões
  1. 26 23
      biz-hd/order/classes/OrderClass.php

+ 26 - 23
biz-hd/order/classes/OrderClass.php

@@ -892,30 +892,33 @@ class OrderClass extends BaseClass
             }
         }
         $fastOrder = $params['fastOrder'] ?? 0;
-        if (!empty($order->receiveUserName) && $fastOrder == 0) {
-            $content .= '收花人:<BR>';
-            $content .= '<B>' . $order->receiveUserName . '</B><BR>';
-        }
-        if (!empty($order->receiveMobile)) {
-            $content .= '<B>' . $order->receiveMobile . '</B><BR><BR>';
-        }
-        if (!empty($order->fullAddress)) {
-            $content .= '<B>' . $order->fullAddress . '(' . $order->showAddress . ')' . '</B><BR><BR>';
-        }
-        if (!empty($order->cardInfo)) {
-            $content .= '<B>贺卡内容:' . $order->cardInfo . '</B><BR><BR>';
-        }
-        if ($order->anonymity == 1) {
-            $content .= '<B>匿名派送!!</B><BR><BR>';
-        } else {
-            if (!empty($order->bookMobile) && $fastOrder == 0) {
-                $bookName = $order->bookName ?? '';
-                $bookMobile = $order->bookMobile;
-                $content .= '订花人:<BR>';
-                if (!empty($bookName)) {
-                    $content .= '<B>' . $bookName . '</B><BR>';
+        //快捷开单不需要显示这些东西
+        if($fastOrder == 0){
+            if (!empty($order->receiveUserName)) {
+                $content .= '收花人:<BR>';
+                $content .= '<B>' . $order->receiveUserName . '</B><BR>';
+            }
+            if (!empty($order->receiveMobile)) {
+                $content .= '<B>' . $order->receiveMobile . '</B><BR><BR>';
+            }
+            if (!empty($order->fullAddress)) {
+                $content .= '<B>' . $order->fullAddress . '(' . $order->showAddress . ')' . '</B><BR><BR>';
+            }
+            if (!empty($order->cardInfo)) {
+                $content .= '<B>贺卡内容:' . $order->cardInfo . '</B><BR><BR>';
+            }
+            if ($order->anonymity == 1) {
+                $content .= '<B>匿名派送!!</B><BR><BR>';
+            } else {
+                if (!empty($order->bookMobile)) {
+                    $bookName = $order->bookName ?? '';
+                    $bookMobile = $order->bookMobile;
+                    $content .= '订花人:<BR>';
+                    if (!empty($bookName)) {
+                        $content .= '<B>' . $bookName . '</B><BR>';
+                    }
+                    $content .= '<B>' . $bookMobile . '</B><BR>';
                 }
-                $content .= '<B>' . $bookMobile . '</B><BR>';
             }
         }
         if (!empty($respond['remark'])) {