Commit ae19352d by 冷斌

支付宝

parent b634d041
...@@ -1350,7 +1350,7 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -1350,7 +1350,7 @@ class Model_Live extends PhalApi_Model_NotORM {
$result=DI()->notorm->users_coinrecord $result=DI()->notorm->users_coinrecord
->select('sum(giftcount) as giftcount,touid as uid') ->select('sum(giftcount) as giftcount,touid as uid')
->where($where .'and giftid = '.$gid) ->where($where .'and giftid = '.$gid)
->order('giftcount desc') ->order('giftcount desc, id')
->group('touid') ->group('touid')
->limit($start,$pnum) ->limit($start,$pnum)
->fetchAll(); ->fetchAll();
...@@ -1369,7 +1369,7 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -1369,7 +1369,7 @@ class Model_Live extends PhalApi_Model_NotORM {
->select('sum(giftcount) as giftcount,uid') ->select('sum(giftcount) as giftcount,uid')
->where($where .'and giftid = '.$gid) ->where($where .'and giftid = '.$gid)
->group('uid') ->group('uid')
->order('giftcount desc') ->order('giftcount desc, id')
->limit($start,$pnum) ->limit($start,$pnum)
->fetchAll(); ->fetchAll();
foreach ($result as $key => $v){ foreach ($result as $key => $v){
......
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