数据展示权限

master
liuweiwen 5 years ago
parent 446e6f8176
commit ad48df6c91

@ -86,6 +86,8 @@ class BehaviorLogController extends ThinkController
$this->assign('endDate', $endDate); $this->assign('endDate', $endDate);
$this->assign('data', $data); $this->assign('data', $data);
$this->assign("is_admin",is_administrator()); $this->assign("is_admin",is_administrator());
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
$this->assign('show_data_power', $show_data_power);
$this->display('index'); $this->display('index');
} }
@ -160,7 +162,8 @@ class BehaviorLogController extends ThinkController
$this->assign('_page', $page); $this->assign('_page', $page);
} }
$this->assign('show_data', $show_data); $this->assign('show_data', $show_data);
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
$this->assign('show_data_power', $show_data_power);
$this->display('singleSupplement'); $this->display('singleSupplement');
} }

@ -137,7 +137,13 @@
<else/> <else/>
<volist name="data" id="vo"> <volist name="data" id="vo">
<tr> <tr>
<td>{$vo.extend}</td> <td>
<if condition="$show_data_power eq true ">
{$vo.extend}
<else />
{$vo.extend|encryptStr}
</if>
</td>
<td>{:set_show_time($vo['create_time'])}</td> <td>{:set_show_time($vo['create_time'])}</td>
<td> <td>
<if condition="$show_data_power eq true "> <if condition="$show_data_power eq true ">

@ -112,11 +112,35 @@
<volist name="show_data" id="vo"> <volist name="show_data" id="vo">
<tr> <tr>
<td>{$vo.type}</td> <td>{$vo.type}</td>
<td>{$vo.pay_order_number}</td> <td>
<td>{$vo.extend}</td> <if condition="$show_data_power eq true ">
{$vo.pay_order_number}
<else />
{$vo.pay_order_number|encryptStr}
</if>
</td>
<td>
<if condition="$show_data_power eq true ">
{$vo.extend}
<else />
{$vo.extend|encryptStr}
</if>
</td>
<td>{:set_show_time($vo['pay_time'])}</td> <td>{:set_show_time($vo['pay_time'])}</td>
<td>{$vo.user_account}</td> <td>
<td>{$vo.promote_account}</td> <if condition="$show_data_power eq true ">
{$vo.user_account}
<else />
{$vo.user_account|encryptStr}
</if>
</td>
<td>
<if condition="$show_data_power eq true ">
{$vo.promote_account}
<else />
{$vo.promote_account|encryptStr}
</if>
</td>
<td>{$vo.game_name}</td> <td>{$vo.game_name}</td>
<td>{$vo.pay_amount}</td> <td>{$vo.pay_amount}</td>
<td>{$vo.pay_way}</td> <td>{$vo.pay_way}</td>

@ -119,9 +119,28 @@
<volist name="data.data" id="vo"> <volist name="data.data" id="vo">
<tr> <tr>
<!-- <td><input class="ids" type="checkbox" value="{$vo['id']}" name="ids[]"></td> --> <!-- <td><input class="ids" type="checkbox" value="{$vo['id']}" name="ids[]"></td> -->
<td>{$vo.pay_order_number}</td> <td>
<td>{$vo.user_account}</td> <if condition="$show_data_power eq true ">
<td>{:get_promote_account($vo['promote_id'])}</td> {$vo.pay_order_number}
<else />
{$vo.pay_order_number|encryptStr}
</if>
</td>
<td>
<if condition="$show_data_power eq true ">
{$vo.user_account}
<else />
{$vo.user_account|encryptStr}
</if>
</td>
<td>
<if condition="$show_data_power eq true ">
{:get_promote_account($vo['promote_id'])}
<else />
<?php $promote_account=get_promote_account($vo['promote_id']) ?>
{$promote_account|encryptStr}
</if>
</td>
<td>{$vo.game_name}</td> <td>{$vo.game_name}</td>
<td>{$vo.amount}</td> <td>{$vo.amount}</td>
<td>{$vo.real_amount}</td> <td>{$vo.real_amount}</td>

@ -133,7 +133,13 @@
<else /> <else />
<volist name="list_data" id="data"> <volist name="list_data" id="data">
<tr> <tr>
<td>{:$data['pay_order_number']}</td> <td>
<if condition="$show_data_power eq true ">
{$data.pay_order_number}
<else />
{$data.pay_order_number|encryptStr}
</if>
</td>
<td> <td>
<if condition="$data['promote_account'] eq '自然注册'"> <if condition="$data['promote_account'] eq '自然注册'">
官方渠道 官方渠道

@ -151,8 +151,20 @@
<td><notempty name="gamename">{$gamename}<else /></notempty></td> <td><notempty name="gamename">{$gamename}<else /></notempty></td>
<td><span class="badge">{$data['server_id']}</span></td> <td><span class="badge">{$data['server_id']}</span></td>
<td><notempty name="servername">{$servername}<else /></notempty></td> <td><notempty name="servername">{$servername}<else /></notempty></td>
<td><span class="badge">{$data['role_id']}</span></td> <td><span class="badge">
<td><notempty name="rolename">{$rolename}<else /></notempty></td> <if condition="$show_data_power eq true ">
{$data['role_id']}
<else />
****
</if>
</span></td>
<td><notempty name="rolename">
<if condition="$show_data_power eq true ">
{$rolename}
<else />
{$rolename|encryptStr}
</if>
<else /></notempty></td>
<td>{$data.role_level}</td> <td>{$data.role_level}</td>
<td> <td>
<if condition="$show_data_power eq true "> <if condition="$show_data_power eq true ">

Loading…
Cancel
Save