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
0e3f98c0
Commit
0e3f98c0
authored
Feb 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取单个标签
parent
44de8b2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Label.php
application/index/controller/Label.php
+8
-5
No files found.
application/index/controller/Label.php
View file @
0e3f98c0
...
@@ -24,11 +24,9 @@ class Label extends Basic
...
@@ -24,11 +24,9 @@ class Label extends Basic
public
function
index
(){
public
function
index
(){
$result
[
'code'
]
=
200
;
$result
[
'code'
]
=
200
;
$result
[
'msg'
]
=
''
;
$result
[
'msg'
]
=
''
;
$labels
=
new
GLabels
();
if
(
$this
->
request
->
isPost
())
{
if
(
$this
->
request
->
isPost
())
{
if
(
$this
->
params
[
'name'
])
{
if
(
$this
->
params
[
'name'
])
{
$labels
=
new
GLabels
();
$data
[
'name'
]
=
$this
->
params
[
'name'
];
$data
[
'name'
]
=
$this
->
params
[
'name'
];
$data
[
'operation_id'
]
=
Session
::
get
(
'userId'
);
$data
[
'operation_id'
]
=
Session
::
get
(
'userId'
);
$data
[
'type'
]
=
$this
->
params
[
'type'
];
$data
[
'type'
]
=
$this
->
params
[
'type'
];
...
@@ -44,8 +42,13 @@ class Label extends Basic
...
@@ -44,8 +42,13 @@ class Label extends Basic
$return
=
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$result
[
'data'
]);
$return
=
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$result
[
'data'
]);
}
else
{
}
else
{
//标签页面
if
(
$this
->
params
[
'id'
])
{
$return
=
view
(
'index'
);
$result
[
'data'
]
=
$labels
->
where
(
'id'
,
$this
->
params
[
'id'
])
->
find
();
$return
=
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$result
[
'data'
]);
}
else
{
//标签页面
$return
=
view
(
'index'
);
}
}
}
return
$return
;
return
$return
;
}
}
...
...
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