Commit 0136b043 by 冷斌

fix bug

parent a4e202cd
...@@ -689,11 +689,11 @@ class Model_User extends PhalApi_Model_NotORM ...@@ -689,11 +689,11 @@ class Model_User extends PhalApi_Model_NotORM
//送出 //送出
$where = "uid = {$touid} and type='expend' and action in ('sendgift','sendbarrage')"; $where = "uid = {$touid} and type='expend' and action in ('sendgift','sendbarrage')";
$out = DI()->notorm->users_coinrecord->where($where)->order('id desc')->sum('totalcoin2'); $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')";
$in = DI()->notorm->users_coinrecord->where($where2)->order('id desc')->sum('totalcoin'); $in = DI()->notorm->users_coinrecord->where($where2)->order('id desc')->sum('totalcoin2');
$info['gift_send'] = (int)$out; $info['gift_send'] = (int)$out;
$info['gift_get'] = (int)$in; $info['gift_get'] = (int)$in;
......
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