管理后台-用户组-玩家列表敏感信息加密显示

master
zhengchanglong 5 years ago
parent 381fa8d633
commit d265c9b03f

@ -585,3 +585,15 @@ function getAllGame()
$list = M("game", 'tab_')->field('relation_game_name as game_name')->group('relation_game_name')->select();
return $list;
}
/**
* 中间加密 替换字符串的子串
*/
function encryptStr($str) {
$length = strlen($str);
$stars_str = "";
for ($x=0; $x<=$length-6; $x++) {
$stars_str = $stars_str."*";
}
return substr_replace($str, $stars_str, 3, $length-6);
}
Loading…
Cancel
Save