Commit 504bf657 by 冷斌

update

parent 27b4e316
......@@ -23,6 +23,7 @@
<thead>
<tr>
<th width="50">ID</th>
<th>推广员</th>
<th>用户名</th>
<th>昵称</th>
<th>用户总充值金额</th>
......@@ -35,6 +36,7 @@
<foreach name="users" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.lv}</td>
<td>{$vo.user_login}</td>
<td>{$vo.user_nicename}</td>
<td>{$vo.total_charge}</td>
......
......@@ -124,6 +124,23 @@ class CustomerController extends AdminbaseController{
}
$v['total_votes']=$total_votes;
$proxy = M('users_proxy')
->field('path')
->where(['uid'=>$v['uid']])
->select();
$lv = '平台';
if (!empty($proxy[0]['path'])) {
$path2 = array_filter(explode(';', $proxy[0]['path']));
$uuid = array_pop($path2);
$uuinfo = getUserInfo($uuid);
$lv = $uuinfo['user_nicename'];
if ($lv === '用户不存在') {
$lv = '平台';
}
}
$lists[$k]['lv']= $lv;
$users[$k]=$v;
}
......
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