Merge pull request 'hotfix/center' (#623) from hotfix/center into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/623
master
张谷城 3 years ago
commit 247436ff1c

@ -482,6 +482,22 @@ class TestingResourceRepository
]; ];
} }
private function encodeStr($str)
{
# 判断字符串长度
$length = strlen($str);
if ($length == 1) {
# 长度为 1 前后拼接 * 号
$newStr = $str.'*'.rand(1,6);
}else{
# 长度超过1随机插入 * 号
$newStr = substr_replace($str,str_repeat('*',$length/2),ceil($length/2),$length).mb_substr($str,$length-2,$length,"utf-8");
// str_repeat('*',$length/2) 星号重复字符长度的一半长度
// ceil($length/2) 算出从第几个字符开始
}
return $newStr;
}
public function makeTestingRoleRecords($roles) public function makeTestingRoleRecords($roles)
{ {
$result = $this->statByRoles($roles); $result = $this->statByRoles($roles);
@ -553,11 +569,11 @@ class TestingResourceRepository
'server_name' => $role['server_name'], 'server_name' => $role['server_name'],
'server_id' => $role['server_id'], 'server_id' => $role['server_id'],
'role_id' => $role['role_id'], 'role_id' => $role['role_id'],
'user_account' => $role['user_account'], 'user_account' => $this->encodeStr($role['user_account']),
'user_phone' => $user ? $user['phone'] : '', 'user_phone' => $user ? $user['phone'] : '',
'role_name' => $role['role_name'], 'role_name' => $role['role_name'],
'binding_id' => $binding ? $binding['id'] : 0, 'binding_id' => $binding ? $binding['id'] : 0,
'bind_user_account' => $bindingRole ? $bindingRole['user_account'] : '', 'bind_user_account' => $bindingRole ? $this->encodeStr($bindingRole['user_account']) : '',
'bind_role_name' => $bindingRole ? $bindingRole['role_name'] : '', 'bind_role_name' => $bindingRole ? $bindingRole['role_name'] : '',
'base_quota' => $gameSetting ? $gameSetting['base_quota'] : 0, 'base_quota' => $gameSetting ? $gameSetting['base_quota'] : 0,
'other_quota' => intval($role['testing_other_quota']), 'other_quota' => intval($role['testing_other_quota']),

@ -1812,6 +1812,7 @@ class QueryController extends BaseController
'user.register_ip', 'user.register_ip',
'user.login_time', 'user.login_time',
'user.login_ip', 'user.login_ip',
'role.server_id',
'role.server_name', 'role.server_name',
'role.sdk_version', 'role.sdk_version',
'role.role_name', 'role.role_name',

@ -199,6 +199,7 @@
<th>实付金额</th> <th>实付金额</th>
<th>游戏名称</th> <th>游戏名称</th>
<th>设备类型</th> <th>设备类型</th>
<th>区服ID</th>
<th>区服</th> <th>区服</th>
<th>角色名</th> <th>角色名</th>
<th>部门长</th> <th>部门长</th>
@ -227,6 +228,7 @@
<td>{$vo.pay_amount}</td> <td>{$vo.pay_amount}</td>
<td>{$vo.game_name}</td> <td>{$vo.game_name}</td>
<td>{$vo.sdk_version}</td> <td>{$vo.sdk_version}</td>
<td>{$vo.server_id}</td>
<td>{$vo.server_name}</td> <td>{$vo.server_name}</td>
<td>{$vo.game_player_name}</td> <td>{$vo.game_player_name}</td>
<td>{$vo.p_p_pro_account}({$vo.p_p_pro_real_name}/{$vo.p_p_pro_group_remark})</td> <td>{$vo.p_p_pro_account}({$vo.p_p_pro_real_name}/{$vo.p_p_pro_group_remark})</td>

@ -133,6 +133,7 @@
<th>最近登录IP</th> <th>最近登录IP</th>
<th>平台</th> <th>平台</th>
<th>区服ID</th>
<th>游戏区服</th> <th>游戏区服</th>
<th>角色名</th> <th>角色名</th>
<th class="sort" sort-name="role_level" class="title-cursor-pointer">等级 <th class="sort" sort-name="role_level" class="title-cursor-pointer">等级
@ -176,6 +177,7 @@
<td>{$record.login_ip}</td> <td>{$record.login_ip}</td>
<td>{:getSDKTypeName($record['sdk_version'])}</td> <td>{:getSDKTypeName($record['sdk_version'])}</td>
<td>{$record.server_id}</td>
<td>{$record.server_name}</td> <td>{$record.server_name}</td>
<td>{$record.role_name}</td> <td>{$record.role_name}</td>
<td>{$record.role_level}</td> <td>{$record.role_level}</td>

Loading…
Cancel
Save