From 2388f882f74e45d932b354f43247df32525a25f8 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 6 Nov 2020 09:57:19 +0800 Subject: [PATCH] Update Goods.php --- app/data/controller/api/Goods.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/data/controller/api/Goods.php b/app/data/controller/api/Goods.php index 968ee4110..c77536981 100644 --- a/app/data/controller/api/Goods.php +++ b/app/data/controller/api/Goods.php @@ -21,7 +21,7 @@ class Goods extends Controller */ public function getCate() { - $this->success('获取商品分类数据成功', GoodsService::instance()->getCateList()); + $this->success('获取分类成功', GoodsService::instance()->getCateList()); } /** @@ -29,7 +29,7 @@ class Goods extends Controller */ public function getMark() { - $this->success('获取商品标签数据成功', GoodsService::instance()->getMarkList()); + $this->success('获取标签成功', GoodsService::instance()->getMarkList()); } /** @@ -49,7 +49,7 @@ class Goods extends Controller $query = $this->_query('ShopGoods')->like('name,mark')->equal('code,cate'); $result = $query->where($map)->order('sort desc,id desc')->page(true, false, false, 10); GoodsService::instance()->buildItemData($result['list']); - $this->success('获取商品数据成功', $result); + $this->success('获取商品成功', $result); } /** @@ -57,7 +57,7 @@ class Goods extends Controller */ public function getRegion() { - $this->success('获取配送区域成功', TruckService::instance()->region(3, 1)); + $this->success('获取区域成功', TruckService::instance()->region(3, 1)); } } \ No newline at end of file