Commit dde052fd by 冷斌

踢人

parent 2c2bda9b
...@@ -253,14 +253,14 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -253,14 +253,14 @@ class Model_Live extends PhalApi_Model_NotORM {
'avatar_thumb' => '', 'avatar_thumb' => '',
'votes' => 0, 'votes' => 0,
]; ];
$result = [];
if ($liveinfo) {
$result=DI()->notorm->users_coinrecord
->select('sum(totalcoin) as totalcoin, uid')
->where("type='expend' and action in ('sendgift','sendbarrage') and showid = '{$liveinfo['showid']}'")
->fetchOne();
}
$result=DI()->notorm->users_coinrecord
->select('sum(totalcoin) as totalcoin, uid')
->where("type='expend' and action in ('sendgift','sendbarrage') and showid = '{$liveinfo['showid']}'")
->fetchOne();
var_dump($liveinfo, $result, "type='expend' and action in ('sendgift','sendbarrage') and showid = '{$liveinfo['showid']}'");
die;
if (array_filter($result)) { if (array_filter($result)) {
$userinfo = DI()->notorm->users $userinfo = DI()->notorm->users
......
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