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
702bf315
Commit
702bf315
authored
Mar 27, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页
parent
5052ccc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
api/Appapi/Model/Home.php
+1
-1
api/Appapi/Model/Live.php
+2
-2
No files found.
api/Appapi/Model/Home.php
View file @
702bf315
...
...
@@ -73,7 +73,7 @@ class Model_Home extends PhalApi_Model_NotORM {
$result
=
DI
()
->
notorm
->
users_live
->
select
(
"uid,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway"
)
->
where
(
$where
)
->
order
(
'
isrecommend desc,
hotvotes desc,starttime desc'
)
->
order
(
'hotvotes desc,starttime desc'
)
->
limit
(
$start
,
$pnum
)
->
fetchAll
();
...
...
api/Appapi/Model/Live.php
View file @
702bf315
...
...
@@ -786,11 +786,11 @@ class Model_Live extends PhalApi_Model_NotORM {
/* 更新主播热门 */
if
(
$giftinfo
[
'mark'
]
==
1
){
//
if($giftinfo['mark']==1){
DI
()
->
notorm
->
users_live
->
where
(
'uid = ?'
,
$liveuid
)
->
update
(
array
(
'hotvotes'
=>
new
NotORM_Literal
(
"hotvotes +
{
$total
}
"
)
));
}
//
}
DI
()
->
redis
->
zIncrBy
(
'user_'
.
$stream
,
$total
,
$uid
);
...
...
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