Browse Source

免费配送设置

shish 8 months ago
parent
commit
8fbda489d6
1 changed files with 9 additions and 0 deletions
  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);
         $openIntraCity = $intraCityRet['openIntraCity'] ?? 0;
         $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);
     }