master
ELF 4 years ago
parent 0d08c9c5fc
commit faf2fdc41f

@ -100,7 +100,15 @@ class GameRebateController extends ThinkController
'B' => '月卡福利发放',
'C' => '累充福利发放',
];
$pageNames = [
'A' => 'single',
'B' => 'daily',
'C' => 'accumulative',
];
$pageTitle = $pageTitles[$awardType];
$pageName = $pageNames[$awardType];
if (count($records) > 0) {
foreach ($records as $key => $record) {
$records[$key]['review_status_text'] = $reviewStatusList[$record['review_status']];
@ -127,7 +135,7 @@ class GameRebateController extends ThinkController
'reviewer_username' => '审核人',
];
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'op_name'=>'导出' . $pageTitle . '记录','url'=>U('GameRebate/records'),'menu'=>'推广员-发放福利管理-' . '导出' . $pageTitle . '记录']);
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'op_name'=>'导出' . $pageTitle . '记录','url'=>U('GameRebate/' . $pageName),'menu'=>'推广员-发放福利管理-' . '导出' . $pageTitle . '记录']);
data2csv($records, $pageTitle, $field);
exit;
@ -144,6 +152,7 @@ class GameRebateController extends ThinkController
$gameRepository = new GameRepository();
$this->assign('pageTitle', $pageTitle);
$this->assign('pageName', $pageName);
$this->assign('awardType', $awardType);
$this->assign('servers', $gameRepository->getServersByBaseGameId($baseGameId));
$this->assign('admins', $admins);

@ -72,13 +72,7 @@
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js"></script>
<div class="cf main-place top_nav_list navtab_list">
<?php if($awardType == 'A'):?>
<h3 class="page_title">单笔充值福利</h3>
<?php elseif($awardType == 'B'):?>
<h3 class="page_title">月卡福利发放</h3>
<?php elseif($awardType == 'C'):?>
<h3 class="page_title">累充福利发放</h3>
<?php endif;?>
<h3 class="page_title">{$pageTitle}</h3>
</div>
<div class="cf top_nav_list" style="height: 38px;">
<!-- 高级搜索 -->
@ -275,7 +269,7 @@
</script>
<script type="text/javascript">
//导航高亮
highlight_subnav("{:U('GameRebate/single')}");
highlight_subnav("{:U('GameRebate/' . $pageName)}");
$(function(){
// 添加全部选项

@ -2865,4 +2865,45 @@ ADD COLUMN `game_assistant_name` varchar(50) NOT NULL DEFAULT '' COMMENT '商务
ALTER TABLE `tab_market_altogether`
ADD COLUMN `personnel_check` tinyint(2) NULL DEFAULT 0 COMMENT '人事确认 0 未确认 1 确认' AFTER `finance_check_detail`,
ADD COLUMN `personnel_check_detail` varchar(100) NULL DEFAULT '' COMMENT '人事确认详情' AFTER `personnel_check`;
ADD COLUMN `personnel_check_detail` varchar(100) NULL DEFAULT '' COMMENT '人事确认详情' AFTER `personnel_check`;
CREATE TABLE `tab_rebate_gifts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`base_game_id` int(11) unsigned NOT NULL COMMENT '游戏id',
`gift_key` varchar(150) NOT NULL COMMENT '返利KEY',
`gift_id` int(5) NOT NULL DEFAULT 0 COMMENT '返利ID(第三方)',
`game_currency` int(11) unsigned DEFAULT '0' COMMENT '返利游戏币(元宝)',
`gift_content` varchar(1000) NOT NULL DEFAULT '' COMMENT '返利内容',
`amount` int(11) unsigned DEFAULT '0' COMMENT '对比金额',
`type` char(1) NOT NULL COMMENT '类型',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='游戏返利表';
CREATE TABLE `tab_rebate_orders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`base_game_id` int(11) unsigned NOT NULL COMMENT '游戏id',
`base_game_name` varchar(50) NOT NULL COMMENT '游戏名称',
`user_account` varchar(30) DEFAULT '' COMMENT '用户账号',
`server_id` varchar(30) DEFAULT '' COMMENT '区服名称',
`server_name` varchar(30) DEFAULT '' COMMENT '区服名称',
`role_name` varchar(100) DEFAULT '' COMMENT '游戏玩家昵称',
`role_id` varchar(50) NOT NULL DEFAULT '' COMMENT '角色ID',
`gift_key` varchar(150) NOT NULL COMMENT '返利KEY',
`gift_content` varchar(1000) NOT NULL DEFAULT '' COMMENT '返利内容',
`type` char(1) NOT NULL COMMENT '类型',
`order_number` varchar(50) NOT NULL DEFAULT '' COMMENT '返利订单(单笔返利时有值)',
`pay_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单金额或累计充值金额',
`amount` int(11) NOT NULL DEFAULT '0' COMMENT '返利档位金额',
`award_date` date DEFAULT NULL COMMENT '返利日期(月卡返利时有值)',
`award_started_at` date DEFAULT NULL COMMENT '返利开始日期(月卡返利时有值)',
`award_ended_at` date DEFAULT NULL COMMENT '返利结束日期(月卡返利时有值)',
`review_status` tinyint(1) not null DEFAULT 0 COMMENT '审核状态 0 未审核 1 审核通过 2 审核拒绝',
`review_time` int(11) not null DEFAULT 0 COMMENT '审核时间',
`reviewer_id` int(11) not null DEFAULT 0 COMMENT '审核人ID',
`reviewer_username` varchar(20) not null DEFAULT '' COMMENT '审核人用户名',
`send_status` tinyint(1) not null DEFAULT 0 COMMENT '发送状态 0 未发送 1 发送成功 2 发送异常',
`send_time` int(11) not null DEFAULT 0 COMMENT '发送时间',
`send_result` varchar(255) not null DEFAULT '' COMMENT '发送结果',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '生成时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='游戏返利订单表';
Loading…
Cancel
Save