shish 2 years ago
parent
commit
fef22fe7af
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app-hd/controllers/PurchaseController.php

+ 4 - 1
app-hd/controllers/PurchaseController.php

@@ -680,7 +680,10 @@ class PurchaseController extends BaseController
         }
         $info['afterSale'] = $ghsInfo->afterSale ?? 1;
 
-
+        //重要,客户看到的电话修改成门店的联系电话
+        $ghsShopId = $ghsInfo->shopId ?? 0;
+        $ghsShopInfo = ShopClass::getById($ghsShopId, true);
+        $info['ghsMobile'] = $ghsShopInfo->telephone ?? '';
         util::success($info);
     }