地图api
This commit is contained in:
@@ -47,6 +47,7 @@ class GoodsCategoryLogic
|
||||
'level' => $level + 1,
|
||||
'is_recommend' => $post['pid'] == 0 ? $is_recommend : 0,
|
||||
'remark' => $post['remark'],
|
||||
'type' => $post['type'], //1:普通分类 2:推荐分类
|
||||
'create_time' => time(),
|
||||
'update_time' => time(),
|
||||
];
|
||||
@@ -77,6 +78,7 @@ class GoodsCategoryLogic
|
||||
'pid' => $post['pid'],
|
||||
'is_recommend' => $post['pid'] == 0 ? $is_recommend : 0,
|
||||
'remark' => $post['remark'],
|
||||
'type' => $post['type'], //1:普通分类 2:推荐分类
|
||||
'update_time' => time(),
|
||||
];
|
||||
|
||||
@@ -128,7 +130,7 @@ class GoodsCategoryLogic
|
||||
$lists = Db::name('goods_category')
|
||||
->where(['del' => 0])
|
||||
->order('id asc')
|
||||
->column('id,name,pid,is_recommend,is_show,level,image,sort');
|
||||
->column('id,name,pid,is_recommend,is_show,level,image,sort,type');
|
||||
foreach ($lists as $k => $item){
|
||||
$lists[$k]['image'] = UrlServer::getFileUrl($item['image']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user