非管理员数据加密显示

master
zhengchanglong 5 years ago
parent dbaf93b630
commit cc6d095a1c

@ -104,7 +104,7 @@ class DepositController extends ThinkController {
$this->m_title = '平台币充值';
$this->assign('commonset',M('Kuaijieicon')->where(['url'=>'Deposit/lists','status'=>1])->find());
$this->assign("is_admin",is_administrator());
parent::lists(self::model_name,$_GET["p"],$map);
}

@ -123,8 +123,25 @@
<volist name="list_data" id="data">
<tr>
<td>{:$data['pay_order_number']}</td>
<td>{$data.user_account}</td>
<td><if condition="$data['promote_account'] eq '自然注册'">官方渠道<else/>{$data.promote_account}</if></td>
<td>
<if condition="$is_admin eq true ">
{$data.user_account}
<else />
{$data.user_account|encryptStr}
</if>
</td>
<td>
<if condition="$data['promote_account'] eq '自然注册'">
官方渠道
<else/>
<if condition="$is_admin eq true ">
{$data.promote_account}
<else />
{$data.promote_account|encryptStr}
</if>
</if>
</td>
<td><span>{$data.pay_amount}</span></td>
<td>{:get_pay_way($data['pay_way'])}</td>
<td>{$data.pay_ip}</td>

@ -224,7 +224,13 @@
<td>{:set_show_time($data['create_time'])}</td>
<td>{:set_show_time($data['last_login_time'])}</td>
<td>{:get_promote_levels($data['id'])}</td>
<td>{:getTopPromote($data['id'])['account']}</td>
<td>
<if condition="$is_admin eq true ">
{:getTopPromote($data['id'])['account']}
<else />
{:encryptStr(getTopPromote($data['id'])['account'])}
</if>
</td>
<td>{:get_business_affairs_account($data['ba_id'])}</td>
<td><if condition="$data['status'] eq 0">
<span class="preview_status">{:get_info_status($data['status'],3)}</span>

Loading…
Cancel
Save