shish 2 år sedan
förälder
incheckning
e24aec6ff4
1 ändrade filer med 9 tillägg och 2 borttagningar
  1. 9 2
      app-ghs/controllers/OrderController.php

+ 9 - 2
app-ghs/controllers/OrderController.php

@@ -1244,8 +1244,15 @@ class OrderController extends BaseController
             util::fail('没有找到客户');
         }
         $customName = $custom->name ?? '';
-        $customMobile = $custom->customMobile ?? '没有手机号';
-        $fullCustom = $customName . $customMobile;
+        $customMobile = $custom->customMobile ?? '';
+        if (empty($customMobile)) {
+            $customShopId = $custom->shopId ?? 0;
+            $customShop = ShopClass::getById($customShopId, true);
+            if (!empty($customShop)) {
+                $customMobile = $customShop->mobile ?? '';
+            }
+        }
+        $fullCustom = $customName . ' ' . $customMobile;
         if ($this->mainId == 8164) {
             //花大苪不显示客户名称
             $fullCustom = '';