Commit 73a3a571 by 冷斌

fix bug

parent 9239bc8a
...@@ -688,11 +688,11 @@ class Model_User extends PhalApi_Model_NotORM ...@@ -688,11 +688,11 @@ class Model_User extends PhalApi_Model_NotORM
$info['islive'] = !empty($live) ? $live['islive'] : 0; $info['islive'] = !empty($live) ? $live['islive'] : 0;
//送出 //送出
$where = "uid = {$touid} and type='expend' and action in ('sendgift','sendbarrage')"; $where = "uid = {$touid} and type='expend' and action in ('sendgift','sendbarrage', 'buyguard')";
$out = DI()->notorm->users_coinrecord->where($where)->order('id desc')->sum('totalcoin'); $out = DI()->notorm->users_coinrecord->where($where)->order('id desc')->sum('totalcoin');
//魅力值 //魅力值
$where2 = "touid = {$touid} and type='expend' and action in ('sendgift','sendbarrage')"; $where2 = "touid = {$touid} and type='expend' and action in ('sendgift','sendbarrage', 'buyguard')";
$in = DI()->notorm->users_coinrecord->where($where2)->order('id desc')->sum('totalcoin2'); $in = DI()->notorm->users_coinrecord->where($where2)->order('id desc')->sum('totalcoin2');
$info['gift_send'] = (int)$out; $info['gift_send'] = (int)$out;
......
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