Commit 17df8cba authored by zfc's avatar zfc Committed by hujun

客户标签2

parent 3eb9c6a1
......@@ -237,18 +237,14 @@ class Client extends Basic
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getULabelsListApp() {
header('Access-Control-Allow-Origin:*');
$result['code'] = 200;
$result['msg'] = '';
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 10 : $this->params['pageSize'];
$labels = new ULabels();
$field = 'id,name,create_time';
$table = New ULabels;
$where['type'] = 1;
$result['data']['list'] = $labels->getList($pageNo, $pageSize, 'id DESC', $field, $where);
$result['data']['total'] = $labels->getTotal($where);
$result['data']['list'] = $table->uleList($where);
return $this->response($result['code'], $result['msg'], $result['data']);
}
......
......@@ -16,7 +16,9 @@ class ULabels extends BaseModel
*/
public function uleList($where)
{
return $this->where($where)->select();
$r= $this->where($where)->select();
return $r;
}
/**检查重复
......
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