地图api

This commit is contained in:
2026-01-01 15:19:18 +08:00
parent b8a9f9b62e
commit 09f117e59c
17 changed files with 99 additions and 13 deletions

View File

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

View File

@@ -481,7 +481,8 @@ class GoodsLogic
'give_integral_type' => $give_integral_type,
'give_integral' => $give_integral,
'spec_type' => $post['spec_type'],
'update_time' => $time
'update_time' => $time,
'type' => $post['type'],
];
Db::name('goods')