Commit b13f13af by 冷斌

fix bug

parent ef3d9c87
...@@ -50,12 +50,6 @@ class LiveController extends AdminbaseController { ...@@ -50,12 +50,6 @@ class LiveController extends AdminbaseController {
->field('sum(votes) as votes') ->field('sum(votes) as votes')
->where("action = 'sendgift' and showid = '{$v['showid']}'") ->where("action = 'sendgift' and showid = '{$v['showid']}'")
->find(); ->find();
var_dump($zhubo);
die;
$zhubo=M('users_voterecord')
->select('sum(votes) as votes')
->where("action = 'sendgift' and showid = '{$v['showid']}'")
->find();
$lists[$k]['votes'] = !$zhubo ? $zhubo['votes'] : 0; $lists[$k]['votes'] = !$zhubo ? $zhubo['votes'] : 0;
} }
......
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