Commit 0273bedd authored by zhuwei's avatar zhuwei

获取图片类型与标签

parent 5cd77b00
...@@ -27,6 +27,27 @@ class ImageDepot extends Basic ...@@ -27,6 +27,27 @@ class ImageDepot extends Basic
} }
/**
* 获取图片类型与标签
* @return \think\Response
*/
public function getImageTypeLabel()
{
header('Access-Control-Allow-Origin:*');
//图片类型:0室外图 ,1室内图 ,2人群图
$res['img_type'] = [0 =>'室外图',1 =>'室内图',2 =>'人群图'];
//0 商场美食、1 沿街餐饮、2 百货零售、3 服饰鞋包、4 休闲娱乐、5 亲子教育、6 百货超市、7 办公
$res['label_type'] = [0 =>'商场美食',1 =>'沿街餐饮',2 =>'百货零售',3 =>'服饰鞋包',4 =>'休闲娱乐',5 =>'亲子教育',6 =>'百货超市',7 =>'办公'];
if ($res) {
return $this->response("200", "成功",$res);
} else {
return $this->response("101", "失败");
}
}
/** /**
* 上传保存图片 * 上传保存图片
* @return \think\Response * @return \think\Response
......
...@@ -378,8 +378,9 @@ Route::group('api', [ ...@@ -378,8 +378,9 @@ Route::group('api', [
'saveSiteCity' => [ 'api/Location/saveSiteCity', [ 'method' => 'POST|GET' ] ], //保存默认城市选择 c端 'saveSiteCity' => [ 'api/Location/saveSiteCity', [ 'method' => 'POST|GET' ] ], //保存默认城市选择 c端
//c端商铺图库相关
'addImageDepot' => [ 'api/ImageDepot/addImageDepot', [ 'method' => 'get | post' ] ], 'addImageDepot' => [ 'api/ImageDepot/addImageDepot', [ 'method' => 'get | post' ] ],//上传保存图片
'getImageTypeLabel' => [ 'api/ImageDepot/getImageTypeLabel', [ 'method' => 'get | post' ] ],//获取图片类型与标签
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment