فهرست منبع

请填写订花人名称

shish 4 سال پیش
والد
کامیت
391ee986ae
2فایلهای تغییر یافته به همراه9 افزوده شده و 3 حذف شده
  1. 8 2
      app-hd/controllers/OrderController.php
  2. 1 1
      biz-hd/order/classes/OrderClass.php

+ 8 - 2
app-hd/controllers/OrderController.php

@@ -384,9 +384,15 @@ class OrderController extends BaseController
 
         $post['shopAdminName'] = $this->shopAdmin->name ?? '';
         $groupId = isset($post['groupId']) && !empty($post['groupId']) ? $post['groupId'] : 0;
-        //1 门店(收银台开单)
+
         $post['fromType'] = $post['fromType'] ?? 1;
-        //客户
+
+        if ($post['fromType'] == dict::getDict('fromType', 'friend')) {
+            if (isset($post['bookName']) == false || empty($post['bookName'])) {
+                util::fail('请填写订花人名称,没有请填【无】');
+            }
+        }
+
         $customId = isset($post['customId']) && $post['customId'] > 0 ? $post['customId'] : 0;
         if (empty($customId)) {
             $customId = $this->shop->defaultCustomId ?? 0;

+ 1 - 1
biz-hd/order/classes/OrderClass.php

@@ -476,7 +476,7 @@ class OrderClass extends BaseClass
             $content .= '--------------------------------<BR>';
             $content .= date("Y-m-d", strtotime($order->addTime)) . '<BR>';
         } else {
-            $content = '<CB><B>' . $fromTypeName . '</B><CB><BR>';
+            $content = '<CB>' . $fromTypeName . '<CB><BR>';
             $content .= '--------------------------------<BR>';
             $content .= '<CB>' . $respond['sendNum'] . '</CB><BR>';
         }