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
524c663b
Commit
524c663b
authored
Sep 20, 2018
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改游戏状态
parent
c4f3d1d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
GameController.class.php
Application/Home/Controller/GameController.class.php
+2
-2
No files found.
Application/Home/Controller/GameController.class.php
View file @
524c663b
...
...
@@ -136,7 +136,7 @@ class GameController extends BaseController
$uid
=
$token
[
'uid'
];
$userGame
=
M
(
"yl_member_game"
,
""
,
C
(
"LEWAN_HEZI"
))
->
where
(
array
(
'uid'
=>
$uid
))
->
field
(
'r_game'
)
->
select
();
$where
=
array
();
$where
=
array
(
'status'
=>
1
);
if
(
!
empty
(
$userGame
))
{
$gameId
=
array_column
(
$userGame
,
'r_game'
);
$where
[
'sysid'
]
=
array
(
'not in'
,
$gameId
);
...
...
@@ -145,7 +145,7 @@ class GameController extends BaseController
$gameList
=
M
(
"yl_game"
,
""
,
C
(
"LEWAN_HEZI"
))
->
where
(
$where
)
->
field
(
'sysid,name,gamer,icon,appid,gourl'
)
->
order
(
'rand()'
)
->
limit
(
4
)
->
select
();
if
(
empty
(
$gameList
))
{
$gameList
=
M
(
"yl_game"
,
""
,
C
(
"LEWAN_HEZI"
))
->
field
(
'sysid,name,gamer,icon,appid,gourl'
)
->
order
(
'rand()'
)
->
limit
(
4
)
->
select
();
$gameList
=
M
(
"yl_game"
,
""
,
C
(
"LEWAN_HEZI"
))
->
where
(
array
(
'status'
=>
1
))
->
field
(
'sysid,name,gamer,icon,appid,gourl'
)
->
order
(
'rand()'
)
->
limit
(
4
)
->
select
();
}
$result
=
array
(
'c'
=>
1
...
...
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