From 30f1c97516440ff21c15b8db310019a4f776dc8a Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 18 Sep 2020 15:29:53 +0800 Subject: [PATCH] Update Goods.php --- app/data/controller/api/Goods.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/data/controller/api/Goods.php b/app/data/controller/api/Goods.php index 26f27dcf6..968ee4110 100644 --- a/app/data/controller/api/Goods.php +++ b/app/data/controller/api/Goods.php @@ -3,6 +3,7 @@ namespace app\data\controller\api; use app\data\service\GoodsService; +use app\data\service\TruckService; use think\admin\Controller; /** @@ -51,4 +52,12 @@ class Goods extends Controller $this->success('获取商品数据成功', $result); } + /** + * 获取配送区域 + */ + public function getRegion() + { + $this->success('获取配送区域成功', TruckService::instance()->region(3, 1)); + } + } \ No newline at end of file