|
|
@@ -1,6 +1,6 @@
|
|
|
<?php
|
|
|
declare (strict_types = 1);
|
|
|
-namespace app\system\controller\v1;
|
|
|
+titlespace app\system\controller\v1;
|
|
|
|
|
|
use app\BaseController;
|
|
|
use app\model\api\ServiceLabel as LabelModel;
|
|
|
@@ -28,15 +28,15 @@ class ServiceLabel extends BaseController{
|
|
|
$pageSize = 50;
|
|
|
$post = UtilService::getMore([
|
|
|
['page',1],
|
|
|
- ['name',''],
|
|
|
+ ['title',''],
|
|
|
['status',''],
|
|
|
],$request);
|
|
|
$where=[];
|
|
|
if(in_array((string)$post["status"],['0','1'])){
|
|
|
$where[]=["status","=",(int)$post["status"]];
|
|
|
}
|
|
|
- if(!empty($post["name"])){
|
|
|
- $where[]=["name","like","%{$post["name"]}%"];
|
|
|
+ if(!empty($post["title"])){
|
|
|
+ $where[]=["title","like","%{$post["title"]}%"];
|
|
|
}
|
|
|
$data = (new LabelModel)
|
|
|
->where($where)
|
|
|
@@ -61,7 +61,7 @@ class ServiceLabel extends BaseController{
|
|
|
public function add(Request $request){
|
|
|
$post = UtilService::getMore([
|
|
|
['id','0'],
|
|
|
- ['name','','empty','请输入标签名称'],
|
|
|
+ ['title','','empty','请输入标签名称'],
|
|
|
['seq','0'],
|
|
|
['type','common'],
|
|
|
['status','1']
|