Commit ae19352d by 冷斌

支付宝

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