Commit 9c165615 by 冷斌

update

parent a6cba4ad
...@@ -23,10 +23,11 @@ class CustomerController extends AdminbaseController{ ...@@ -23,10 +23,11 @@ class CustomerController extends AdminbaseController{
$user = $this->users_model->where("id={$_SESSION['ADMIN_ID']}")->find(); $user = $this->users_model->where("id={$_SESSION['ADMIN_ID']}")->find();
if($user['tg_type'] == 0){//平台方 if($user['tg_type'] == 0){//平台方
}elseif($user['tg_type'] == 2){//一级代理 }elseif($user['tg_type'] == 2){//一级代理
$path=setpath($user['id']); $path=setpath($user['id']);
var_dump($path);
die;
$uids=$Proxy->where("type=0 and path like '%{$path}%'")->getField('uid',true); $uids=$Proxy->where("type=0 and path like '%{$path}%'")->getField('uid',true);
if($uids){ if($uids){
...@@ -123,8 +124,7 @@ class CustomerController extends AdminbaseController{ ...@@ -123,8 +124,7 @@ class CustomerController extends AdminbaseController{
$total_votes='0'; $total_votes='0';
} }
$v['total_votes']=$total_votes; $v['total_votes']=$total_votes;
var_dump($v);
die;
$results = M('users_coinrecord') $results = M('users_coinrecord')
// ->select("sum('totalcoin') as sum") // ->select("sum('totalcoin') as sum")
->where("uid = {$v['id']} and type='expend' and action in ('sendgift','sendbarrage')") ->where("uid = {$v['id']} and type='expend' and action in ('sendgift','sendbarrage')")
......
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