Update Goods.php

This commit is contained in:
Anyon 2020-09-18 15:29:53 +08:00
parent 985d136450
commit 30f1c97516

View File

@ -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));
}
}