shish 2 жил өмнө
parent
commit
fef22fe7af

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

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