Commit 272ae615 by 冷斌

update

parent 9d062fa7
...@@ -73,7 +73,7 @@ class Model_Home extends PhalApi_Model_NotORM { ...@@ -73,7 +73,7 @@ class Model_Home extends PhalApi_Model_NotORM {
$result=DI()->notorm->users_live $result=DI()->notorm->users_live
->select("uid,thumb,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway") ->select("uid,thumb,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway")
->where($where) ->where($where)
->order('hotvotes desc,starttime') ->order('hotvotes desc, starttime desc')
->limit($start,$pnum) ->limit($start,$pnum)
->fetchAll(); ->fetchAll();
...@@ -603,11 +603,11 @@ class Model_Home extends PhalApi_Model_NotORM { ...@@ -603,11 +603,11 @@ class Model_Home extends PhalApi_Model_NotORM {
public function getRecommend(){ public function getRecommend(){
$configpri=getConfigPri(); $configpri=getConfigPri();
$where=" isrecommend = '1' and islive= '1' and ishot='1' "; $where="islive= '1'";
$result=DI()->notorm->users_live $result=DI()->notorm->users_live
->select("uid,thumb,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway") ->select("uid,thumb,title,city,stream,pull,thumb,isvideo,type,type_val,game_action,goodnum,anyway")
->where($where) ->where($where)
->order('starttime desc') ->order(' isrecommend desc, starttime desc')
->limit(50) ->limit(50)
->fetchAll(); ->fetchAll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment