Commit 0a1a4c0b by 冷斌

update

parent 8b3d2ac1
......@@ -75,14 +75,15 @@ class PromotersController extends AdminbaseController{
// $total_coin='0';
// }
// $v['total_coin']=$total_coin;
var_dump($v);
$results = M('users_coinrecord')
// ->select("sum('totalcoin') as sum")
->where("uid = {$v['id']} and type='expend' and action in ('sendgift','sendbarrage')")
->sum('totalcoin');
$v['total_coin'] = (int)$results;
var_dump($results);
die;
$map3=[];
$map3['uid'] = array('in',$uids);
$total_votes=$Votes->where("type='income'")->where($map3)->sum('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