瀏覽代碼

免费配送设置

shish 9 月之前
父節點
當前提交
8fbda489d6
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      app-hd/controllers/GhsController.php

+ 9 - 0
app-hd/controllers/GhsController.php

@@ -310,6 +310,15 @@ class GhsController extends BaseController
         $intraCityRet = ShopClass::hasIntraCity($ghsShop);
         $intraCityRet = ShopClass::hasIntraCity($ghsShop);
         $openIntraCity = $intraCityRet['openIntraCity'] ?? 0;
         $openIntraCity = $intraCityRet['openIntraCity'] ?? 0;
         $info['openIntraCity'] = $openIntraCity;
         $info['openIntraCity'] = $openIntraCity;
+        //花材的免费配送设置
+        $hcFreeKm = $shopExt['hcFreeKm'] ?? 0;
+        $info['hcFreeKm'] = $hcFreeKm;
+        $hcMapString = $shopExt['hcMap'] ?? '';
+        $hcMap = [];
+        if (!empty($hcMapString)) {
+            $hcMap = json_decode($hcMapString, true);
+        }
+        $info['hcMap'] = $hcMap;
 
 
         util::success($info);
         util::success($info);
     }
     }