Commit 2cc0881a by 冷斌

fix bug

parent a1053263
......@@ -617,6 +617,18 @@ class Model_User extends PhalApi_Model_NotORM
$live = DI()->notorm->users_live->select("islive")->where('uid=?', $touid)->fetchOne();
$info['islive'] = !empty($live) ? $live['islive'] : 0;
//送出
$where = "uid = {$uid} and type='expend' and action in ('sendgift','sendbarrage')";
$out = DI()->notorm->users_coinrecord->where($where)->order('id desc')->sum('totalcoin');
//魅力值
$where2 = "touid = {$uid} and type='expend' and action in ('sendgift','sendbarrage')";
$in = DI()->notorm->users_coinrecord->where($where)->order('id desc')->sum('totalcoin');
var_dump($out, $in);
die;
return $info;
}
......
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