Jelajahi Sumber

拓展参数

shish 8 bulan lalu
induk
melakukan
bf364c29b7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app-hd/controllers/GhsController.php

+ 1 - 1
app-hd/controllers/GhsController.php

@@ -303,7 +303,7 @@ class GhsController extends BaseController
 
         // 弃用 buyNotice, 使用 xhShopExt 表里的 purchaseGuide
         // $info['buyNotice'] = $ghsShop->buyNotice ?? 0;
-        $shopExt = ShopExtClass::getByCondition(['shopId' => $ghsShopId], false, false, 'purchaseGuide');
+        $shopExt = ShopExtClass::getByCondition(['shopId' => $ghsShopId], false, false, 'purchaseGuide,hcFreeKm,hcMap');
         $info['buyNotice'] = $shopExt['purchaseGuide'] > 0 ? 1 : 0; //兼容原有设定:购买须知 0.没有 1.有
 
         //判断是否开启同城配送功能