Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
quxiu
Commits
d64716fe
Commit
d64716fe
authored
Mar 27, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页
parent
702bf315
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
api/Appapi/Api/Live.php
+3
-3
api/Appapi/Model/Home.php
+3
-3
No files found.
api/Appapi/Api/Live.php
View file @
d64716fe
...
@@ -223,15 +223,15 @@ class Api_Live extends PhalApi_Api {
...
@@ -223,15 +223,15 @@ class Api_Live extends PhalApi_Api {
{
{
$domain
=
new
Domain_Home
();
$domain
=
new
Domain_Home
();
$res
=
$domain
->
star
(
'day'
);
$res
=
$domain
->
star
(
'day'
);
$i
=
99
;
$i
=
14
;
foreach
(
$res
as
$key
=>
$r
){
foreach
(
$res
as
$key
=>
$r
){
if
(
$r
[
'uid'
]
==
$uid
)
{
if
(
$r
[
'uid'
]
==
$uid
)
{
$i
=
$key
;
$i
=
$key
;
break
;
break
;
}
}
}
}
if
(
$i
===
99
)
{
if
(
$i
===
14
)
{
return
'1
00
+'
;
return
'1
5
+'
;
}
}
return
$i
+
1
;
return
$i
+
1
;
}
}
...
...
api/Appapi/Model/Home.php
View file @
d64716fe
...
@@ -741,7 +741,7 @@ class Model_Home extends PhalApi_Model_NotORM {
...
@@ -741,7 +741,7 @@ class Model_Home extends PhalApi_Model_NotORM {
->
where
(
$where
)
->
where
(
$where
)
->
group
(
'touid'
)
->
group
(
'touid'
)
->
order
(
'totalcoin desc'
)
->
order
(
'totalcoin desc'
)
->
limit
(
1
00
)
->
limit
(
1
5
)
->
fetchAll
();
->
fetchAll
();
foreach
(
$result
as
$k
=>
$v
)
{
foreach
(
$result
as
$k
=>
$v
)
{
$userinfo
=
getUserInfo
(
$v
[
'touid'
]);
$userinfo
=
getUserInfo
(
$v
[
'touid'
]);
...
@@ -818,7 +818,7 @@ class Model_Home extends PhalApi_Model_NotORM {
...
@@ -818,7 +818,7 @@ class Model_Home extends PhalApi_Model_NotORM {
->
where
(
$where
)
->
where
(
$where
)
->
group
(
'uid'
)
->
group
(
'uid'
)
->
order
(
'totalcoin desc'
)
->
order
(
'totalcoin desc'
)
->
limit
(
1
00
)
->
limit
(
1
5
)
->
fetchAll
();
->
fetchAll
();
foreach
(
$result
as
$k
=>
$v
)
{
foreach
(
$result
as
$k
=>
$v
)
{
$userinfo
=
getUserInfo
(
$v
[
'uid'
]);
$userinfo
=
getUserInfo
(
$v
[
'uid'
]);
...
@@ -890,7 +890,7 @@ class Model_Home extends PhalApi_Model_NotORM {
...
@@ -890,7 +890,7 @@ class Model_Home extends PhalApi_Model_NotORM {
->
where
(
$where
)
->
where
(
$where
)
->
group
(
'familyid'
)
->
group
(
'familyid'
)
->
order
(
'profit desc'
)
->
order
(
'profit desc'
)
->
limit
(
1
00
)
->
limit
(
1
5
)
->
fetchAll
();
->
fetchAll
();
foreach
(
$result
as
$k
=>
$v
)
{
foreach
(
$result
as
$k
=>
$v
)
{
...
...
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