|
|
@@ -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 = '';
|