Commit 7d1698ae by 冷斌

fix bug

parent cf2b3767
......@@ -46,6 +46,12 @@ class LiveController extends AdminbaseController {
foreach($lists as $k=>$v){
$userinfo=M("users")->field("user_nicename")->where("id='{$v['uid']}'")->find();
$lists[$k]['userinfo']=$userinfo;
$zhubo=M('users_voterecord')
->select('sum(votes) as votes')
->where("action = 'sendgift' and showid = '{$v['showid']}'")
->find();
$lists[$k]['votes'] = !$zhubo ? $zhubo['votes'] : 0;
}
$this->assign('config', $config);
......
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