Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
8a68dc1a
Commit
8a68dc1a
authored
Mar 01, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户标签2
parent
e8307f0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
Client.php
application/api_broker/controller/Client.php
+3
-7
ULabels.php
application/model/ULabels.php
+3
-1
No files found.
application/api_broker/controller/Client.php
View file @
8a68dc1a
...
...
@@ -209,18 +209,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'
]);
}
...
...
application/model/ULabels.php
View file @
8a68dc1a
...
...
@@ -16,7 +16,9 @@ class ULabels extends BaseModel
*/
public
function
uleList
(
$where
)
{
return
$this
->
where
(
$where
)
->
select
();
$r
=
$this
->
where
(
$where
)
->
select
();
return
$r
;
}
/**检查重复
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment