账号加密

master
sunke 5 years ago
commit 9256bda2d0

@ -1918,7 +1918,7 @@ class DownloadController extends BaseController {
} }
$csvData['extend'] = $this->encryption($v['extend']); $csvData['extend'] = $this->encryption($v['extend']);
$csvData['create_time'] = $v['create_time']; $csvData['create_time'] = $v['create_time'];
$csvData['user_account'] = $v['user_account']; $csvData['user_account'] = $this->encryption($v['user_account']);
$csvData['game_name'] = $v['game_name']; $csvData['game_name'] = $v['game_name'];
$csvData['promote_id'] = $v['promote_id']; $csvData['promote_id'] = $v['promote_id'];
$csvData['server_name'] = $serverInfo['server_name']; $csvData['server_name'] = $serverInfo['server_name'];
@ -2607,6 +2607,7 @@ class DownloadController extends BaseController {
foreach ($data as $key => &$list) { foreach ($data as $key => &$list) {
$list['income'] = bcmul($list['pay_amount'], bcdiv($list['selle_ratio'], 100, 2), 2); $list['income'] = bcmul($list['pay_amount'], bcdiv($list['selle_ratio'], 100, 2), 2);
$list['pay_time'] = date('Y-m-d H:i:s', $list['pay_time']); $list['pay_time'] = date('Y-m-d H:i:s', $list['pay_time']);
$list['user_account'] = $this->encryption($list['user_account']);
switch ($list['pay_way']) { switch ($list['pay_way']) {
case 2: case 2:
case 3: case 3:

@ -89,6 +89,7 @@ class PlayersController extends BaseController {
} }
$rs[$key]['extend'] = encryption($v['extend']); $rs[$key]['extend'] = encryption($v['extend']);
$rs[$key]['create_time'] = date('Y-m-d H:i:s',$v['create_time']); $rs[$key]['create_time'] = date('Y-m-d H:i:s',$v['create_time']);
$rs[$key]['user_account'] = encryption($rs[$key]['user_account']);
$promoteInfo = M('promote','tab_')->field("account")->where(['id' => intval($v['promote_id'])])->find(); $promoteInfo = M('promote','tab_')->field("account")->where(['id' => intval($v['promote_id'])])->find();
$rs[$key]['promote_id']= $promoteInfo['account']; $rs[$key]['promote_id']= $promoteInfo['account'];

Loading…
Cancel
Save