Commit 88ecdc67 by 冷斌

fix bug

parent d1cb94f8
...@@ -231,7 +231,7 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -231,7 +231,7 @@ class Model_Live extends PhalApi_Model_NotORM {
// 魅力值。。 // 魅力值。。
$zhubo=DI()->notorm->users_coinrecord $zhubo=DI()->notorm->users_coinrecord
->select('sum(totalcoin2) as votes') ->select('sum(totalcoin2) as votes')
->where("action = 'sendgift' and showid = '{$liveinfo['showid']}'") ->where("action in ('sendgift', 'buyguard') and showid = '{$liveinfo['showid']}'")
->fetchOne(); ->fetchOne();
if (!empty($zhubo['votes'])) { if (!empty($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