数据展示权限

master
liuweiwen 5 years ago
parent 446e6f8176
commit ad48df6c91

@ -86,6 +86,8 @@ class BehaviorLogController extends ThinkController
$this->assign('endDate', $endDate);
$this->assign('data', $data);
$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');
}
@ -160,7 +162,8 @@ class BehaviorLogController extends ThinkController
$this->assign('_page', $page);
}
$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');
}

@ -137,7 +137,13 @@
<else/>
<volist name="data" id="vo">
<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>
<if condition="$show_data_power eq true ">

@ -112,11 +112,35 @@
<volist name="show_data" id="vo">
<tr>
<td>{$vo.type}</td>
<td>{$vo.pay_order_number}</td>
<td>{$vo.extend}</td>
<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>{$vo.user_account}</td>
<td>{$vo.promote_account}</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 ">
{$vo.promote_account}
<else />
{$vo.promote_account|encryptStr}
</if>
</td>
<td>{$vo.game_name}</td>
<td>{$vo.pay_amount}</td>
<td>{$vo.pay_way}</td>

@ -119,9 +119,28 @@
<volist name="data.data" id="vo">
<tr>
<!-- <td><input class="ids" type="checkbox" value="{$vo['id']}" name="ids[]"></td> -->
<td>{$vo.pay_order_number}</td>
<td>{$vo.user_account}</td>
<td>{:get_promote_account($vo['promote_id'])}</td>
<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.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.amount}</td>
<td>{$vo.real_amount}</td>

@ -133,7 +133,13 @@
<else />
<volist name="list_data" id="data">
<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>
<if condition="$data['promote_account'] eq '自然注册'">
官方渠道

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

Loading…
Cancel
Save