Commit 481257ac by 冷斌

fix bug

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