Commit 481257ac by 冷斌

fix bug

parent 9fb69d24
......@@ -233,8 +233,7 @@ class Model_Live extends PhalApi_Model_NotORM {
->select('sum(totalcoin2) as votes')
->where("action = 'sendgift' and showid = '{$liveinfo['showid']}'")
->fetchOne();
var_dump($zhubo, $liveinfo['showid']);
die;
if (!empty($zhubo['votes'])) {
$rs['votes'] = (int)$zhubo['votes'];
}
......
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