mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-22 06:49:15 +08:00
Update Goods.php
This commit is contained in:
parent
44baa96676
commit
2388f882f7
@ -21,7 +21,7 @@ class Goods extends Controller
|
|||||||
*/
|
*/
|
||||||
public function getCate()
|
public function getCate()
|
||||||
{
|
{
|
||||||
$this->success('获取商品分类数据成功', GoodsService::instance()->getCateList());
|
$this->success('获取分类成功', GoodsService::instance()->getCateList());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -29,7 +29,7 @@ class Goods extends Controller
|
|||||||
*/
|
*/
|
||||||
public function getMark()
|
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');
|
$query = $this->_query('ShopGoods')->like('name,mark')->equal('code,cate');
|
||||||
$result = $query->where($map)->order('sort desc,id desc')->page(true, false, false, 10);
|
$result = $query->where($map)->order('sort desc,id desc')->page(true, false, false, 10);
|
||||||
GoodsService::instance()->buildItemData($result['list']);
|
GoodsService::instance()->buildItemData($result['list']);
|
||||||
$this->success('获取商品数据成功', $result);
|
$this->success('获取商品成功', $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,7 +57,7 @@ class Goods extends Controller
|
|||||||
*/
|
*/
|
||||||
public function getRegion()
|
public function getRegion()
|
||||||
{
|
{
|
||||||
$this->success('获取配送区域成功', TruckService::instance()->region(3, 1));
|
$this->success('获取区域成功', TruckService::instance()->region(3, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user