Commit be1774b8 by 冷斌

add

parent 4442bef8
...@@ -735,7 +735,7 @@ class Model_Home extends PhalApi_Model_NotORM { ...@@ -735,7 +735,7 @@ class Model_Home extends PhalApi_Model_NotORM {
$where.=" type='expend' and action in ('sendgift','sendbarrage') and touid in ({$userids}) "; $where.=" type='expend' and action in ('sendgift','sendbarrage') and touid in ({$userids}) ";
$result=DI()->notorm->users_coinrecord $result=DI()->notorm->users_coinrecord
->select('sum(totalcoin) as totalcoin, touid as uid') ->select('sum(totalcoin) as totalcoin, touid')
->where($where) ->where($where)
->group('touid') ->group('touid')
->order('totalcoin desc') ->order('totalcoin desc')
...@@ -743,6 +743,7 @@ class Model_Home extends PhalApi_Model_NotORM { ...@@ -743,6 +743,7 @@ class Model_Home extends PhalApi_Model_NotORM {
->fetchAll(); ->fetchAll();
foreach ($result as $k => $v) { foreach ($result as $k => $v) {
$userinfo=getUserInfo($v['uid']); $userinfo=getUserInfo($v['uid']);
$v['uid'] = $v['touid'];
$v['avatar']=$userinfo['avatar']; $v['avatar']=$userinfo['avatar'];
$v['avatar_thumb']=$userinfo['avatar_thumb']; $v['avatar_thumb']=$userinfo['avatar_thumb'];
$v['user_nicename']=$userinfo['user_nicename']; $v['user_nicename']=$userinfo['user_nicename'];
......
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