優化到處

master
ELF 4 years ago
parent faf2fdc41f
commit 95fea8fcf6

@ -109,6 +109,7 @@ class GameRebateController extends ThinkController
$pageTitle = $pageTitles[$awardType];
$pageName = $pageNames[$awardType];
$newLine = I('export', 0) == 1 ? "\n" : '<br/>';
if (count($records) > 0) {
foreach ($records as $key => $record) {
$records[$key]['review_status_text'] = $reviewStatusList[$record['review_status']];
@ -117,7 +118,7 @@ class GameRebateController extends ThinkController
$records[$key]['send_time'] = $record['send_time'] > 0 ? date('Y-m-d H:i:s', $record['send_time']) : '--';
$records[$key]['award_date_range'] = is_null($record['award_started_at']) || is_null($record['award_ended_at'])
? '' : $record['award_started_at'] . ' ~ ' . $record['award_ended_at'];
$records[$key]['gift_content'] = implode('<br/>', explode('|', $record['gift_content']));
$records[$key]['gift_content'] = implode($newLine, explode('|', $record['gift_content']));
}
if (I('export', 0) == 1) {
$field = [
@ -126,7 +127,6 @@ class GameRebateController extends ThinkController
'user_account' => '账号',
'role_id' => '角色ID',
'role_name' => '角色名称',
'pay_amount' => '充值金额',
'gift_content' => '奖励内容',
'review_status_text' => '审核状态',
'review_time' => '审核时间',
@ -134,6 +134,15 @@ class GameRebateController extends ThinkController
'send_time' => '发放时间',
'reviewer_username' => '审核人',
];
if ($awardType == 'A') {
$field['pay_amount'] = '充值金额';
} elseif ($awardType == 'B') {
$field['pay_amount'] = '当日累计充值金额';
$field['award_date_range'] = '可领取福利日期';
} elseif ($awardType == 'C') {
$field['amount'] = '达到档位金额';
}
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'op_name'=>'导出' . $pageTitle . '记录','url'=>U('GameRebate/' . $pageName),'menu'=>'推广员-发放福利管理-' . '导出' . $pageTitle . '记录']);

@ -240,10 +240,8 @@
</div>
</div>
<div class="page">
<if condition="$role_export_check eq true ">
<a class="sch-btn export-btn"
href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}" target="_blank">导出</a>
</if>
<a class="sch-btn export-btn"
href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}" target="_blank">导出</a>
{$_page|default=''}
</div>

Loading…
Cancel
Save