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
8d3f789a
Commit
8d3f789a
authored
May 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
525e380e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
SquareService.php
application/api_broker/service/SquareService.php
+3
-2
Square.php
application/index/controller/Square.php
+3
-1
No files found.
application/api_broker/service/SquareService.php
View file @
8d3f789a
...
...
@@ -32,9 +32,10 @@ class SquareService
* 文章部门
* @return array
*/
public
function
getDistrictLable
()
public
function
getDistrictLable
(
$type
)
{
$res
[]
=
[
'id'
=>
0
,
'name'
=>
'热帖'
];
$str
=
$type
==
0
?
'全部'
:
'热帖'
;
$res
[]
=
[
'id'
=>
0
,
'name'
=>
$str
];
$res
[]
=
[
'id'
=>
1
,
'name'
=>
'一部'
];
$res
[]
=
[
'id'
=>
2
,
'name'
=>
'二部'
];
$res
[]
=
[
'id'
=>
3
,
'name'
=>
'三部'
];
...
...
application/index/controller/Square.php
View file @
8d3f789a
...
...
@@ -25,7 +25,9 @@ class Square extends Basic
*/
public
function
getDistrictLable
()
{
$res
=
$this
->
s_square
->
getDistrictLable
();
$params
=
$this
->
params
;
$type
=
!
isset
(
$params
[
'type'
])
?
1
:
$params
[
'type'
];
$res
=
$this
->
s_square
->
getDistrictLable
(
$type
);
return
$this
->
response
(
"200"
,
"成功"
,
$res
);
}
...
...
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