shish 9 місяців тому
батько
коміт
411944823b
1 змінених файлів з 1 додано та 3 видалено
  1. 1 3
      app-hd/controllers/GhsController.php

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

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