Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ylc.llewan.com
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
llewan
ylc.llewan.com
Commits
9d42178a
Commit
9d42178a
authored
Sep 26, 2018
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改游戏主题列表
parent
6cbaae4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
GameController.class.php
Application/Home/Controller/GameController.class.php
+34
-0
No files found.
Application/Home/Controller/GameController.class.php
View file @
9d42178a
...
@@ -159,6 +159,40 @@ class GameController extends BaseController
...
@@ -159,6 +159,40 @@ class GameController extends BaseController
}
}
//主题列表
public
function
themeList
()
{
$gameTheme
=
M
(
"yl_game_theme"
,
""
,
C
(
"LEWAN_HEZI"
))
->
where
(
array
(
'stauts'
=>
1
))
->
field
(
'sysid as id,name,game_list'
)
->
order
(
'sort desc'
)
->
select
();
if
(
!
empty
(
$gameTheme
))
{
$gameField
=
'sysid as id,name,icon,appid,gourl'
;
foreach
(
$gameTheme
as
$key
=>
$val
)
{
$gameId
=
explode
(
','
,
$val
[
'game_list'
]);
if
(
!
empty
(
$gameId
))
{
$gameTheme
[
$key
][
'game_list'
]
=
M
(
"yl_game"
,
""
,
C
(
"LEWAN_HEZI"
))
->
where
(
array
(
'status'
=>
1
,
'sysid'
=>
array
(
'in'
,
$gameId
)))
->
field
(
$gameField
)
->
order
(
'field(sysid, '
.
$val
[
'game_list'
]
.
')'
)
->
select
();
}
else
{
$gameTheme
[
$key
][
'game_list'
]
=
array
();
}
}
$result
=
array
(
'c'
=>
1
,
'msg'
=>
'获取成功'
,
'd'
=>
array
(
'themeList'
=>
$gameTheme
)
);
}
else
{
$result
=
array
(
'c'
=>
2
,
'msg'
=>
'暂无数据'
);
}
echo
$this
->
formatRes
(
$result
);
}
}
}
...
...
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