Commit 9d39f759 by 冷斌

update

parent 1b8e7642
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
<thead> <thead>
<tr> <tr>
<th align="center">ID</th> <th align="center">ID</th>
<th>上一级</th>
<th>会员</th> <th>会员</th>
<th>人民币金额</th> <th>人民币金额</th>
<th>兑换{$configpub['name_coin']}</th> <th>兑换{$configpub['name_coin']}</th>
...@@ -67,6 +68,7 @@ ...@@ -67,6 +68,7 @@
<foreach name="lists" item="vo"> <foreach name="lists" item="vo">
<tr> <tr>
<td align="center">{$vo.id}</td> <td align="center">{$vo.id}</td>
<td>{$vo['lv']}</td>
<td>{$vo['userinfo']['user_nicename']} ( {$vo['uid']} )</td> <td>{$vo['userinfo']['user_nicename']} ( {$vo['uid']} )</td>
<td>{$vo['money']}</td> <td>{$vo['money']}</td>
<td>{$vo['coin']}</td> <td>{$vo['coin']}</td>
......
...@@ -176,7 +176,20 @@ class ChargeController extends AdminbaseController { ...@@ -176,7 +176,20 @@ class ChargeController extends AdminbaseController {
foreach($lists as $k=>$v){ foreach($lists as $k=>$v){
$userinfo=M("users")->field("user_nicename")->where("id='$v[uid]'")->find(); $userinfo=M("users")->field("user_nicename")->where("id='$v[uid]'")->find();
$lists[$k]['userinfo']= $userinfo; $lists[$k]['userinfo']= $userinfo;
$proxy = M('users_proxy')
->field('path')
->where(['uid'=>$v['uid']])
->select();
$lv = '平台';
if (!empty($proxy['path'])) {
$uuid = array_pop(explode(';', $proxy['path']));
$uuinfo = getUserInfo($uuid);
$lv = $uuinfo['user_nicename'];
if ($lv === '用户不存在') {
$lv = '平台';
}
}
$lists[$k]['lv']= $lv;
} }
......
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