From ba158e6b9a63be7b8e27b25227a5c2d9a0ef2b74 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 7 Jan 2020 18:18:40 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 13 ++++ .../Controller/ExportController.class.php | 65 +++++++++++++++++++ .../Controller/QueryController.class.php | 16 +++-- 3 files changed, 89 insertions(+), 5 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index ebe7995f4..3fb91a02a 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1813,4 +1813,17 @@ function getAdmin($column = 'uid') { return session("user_auth")[$column]; } +//获取所有有关的公司 + +function getCompanyList() { + + $sql = "select id,company_name,1 as company_type from tab_promote_company UNION ALL select id,partner,0 as company_type from tab_partner"; + + $data = M()->table("({$sql}) as a")->select(); + + + return $data; + +} + ?> diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 1fa5726cf..85c3dfa52 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -7961,4 +7961,69 @@ class ExportController extends Controller exit(); } + + public function excelUpStreamTemplate() { + header("Content-type: text/html; charset=gb2312"); + error_reporting(E_ALL); + ini_set('display_errors', TRUE); + ini_set('display_startup_errors', TRUE); + + define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
'); + + date_default_timezone_set('Europe/London'); + Vendor("PHPExcel.PHPExcel"); + $objPHPExcel = new \PHPExcel(); + $objReader = \PHPExcel_IOFactory::createReader('Excel5'); + + //设置模板文件 + $objPHPExcel = $objReader->load("Runtime/upstream.xls"); + + + $objPHPExcel->getActiveSheet()->setCellValue('D2', 'chengzhi'); + + $objPHPExcel->getActiveSheet()->insertNewRowBefore(10,1)->mergeCells('J10:K10')->insertNewRowBefore(10,1)->mergeCells('J10:K10'); + + + ob_end_clean();//清除缓冲区,避免乱码 + header('pragma:public'); + header('Content-type:application/vnd.ms-excel;charset=utf-8;name="15415.xls"'); + header("Content-Disposition:attachment;filename=15415.xls");//attachment新窗口打印inline本窗口打印 + $objWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); + $objWriter->save('php://output'); + exit; + + } + + public function excelDownStreamTemplate() { + header("Content-type: text/html; charset=gb2312"); + error_reporting(E_ALL); + ini_set('display_errors', TRUE); + ini_set('display_startup_errors', TRUE); + + define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
'); + + date_default_timezone_set('Europe/London'); + Vendor("PHPExcel.PHPExcel"); + $objPHPExcel = new \PHPExcel(); + $objReader = \PHPExcel_IOFactory::createReader('Excel5'); + + //设置模板文件 + $objPHPExcel = $objReader->load("upstream.xls"); + + + $objPHPExcel->getActiveSheet()->setCellValue('D2', 'chengzhi'); + + $objPHPExcel->getActiveSheet()->insertNewRowBefore(10,1); + + + ob_end_clean();//清除缓冲区,避免乱码 + header('pragma:public'); + header('Content-type:application/vnd.ms-excel;charset=utf-8;name="15415.xls"'); + header("Content-Disposition:attachment;filename=15415.xls");//attachment新窗口打印inline本窗口打印 + $objWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); + $objWriter->save('php://output'); + exit; + + } + } diff --git a/Application/Admin/Controller/QueryController.class.php b/Application/Admin/Controller/QueryController.class.php index 497f5b7f1..e6e9edc3e 100644 --- a/Application/Admin/Controller/QueryController.class.php +++ b/Application/Admin/Controller/QueryController.class.php @@ -1053,30 +1053,36 @@ class QueryController extends ThinkController //关联表获取会长账号名 $data = M()->table('('.$data.') as a') - ->field("my_time,pay_amount,a.game_id,game_name,game_names,a.promote_id,a.promote_account,a.company_relation,a.company_belong,CASE WHEN root_id is null THEN 0 ELSE root_id END as root_id,CASE WHEN account is null THEN '官方渠道' ELSE account END as account,ratio,turnover_ratio") + ->field("my_time,pay_amount,a.game_id,game_name,game_names,a.promote_id,a.promote_account,a.company_relation,a.company_belong,CASE WHEN root_id is null THEN 0 ELSE root_id END as root_id,CASE WHEN account is null THEN '官方渠道' ELSE account END as account,tab_ratio.ratio as ratio,turnover_ratio,game_ratio.ratio as games_ratio") ->join("left join tab_promote on root_id = tab_promote.id") ->join("left join tab_promote_game_ratio as tab_ratio on tab_ratio.game_id = a.game_id and tab_ratio.promote_id=root_id") + ->join("left join tab_cp_game_ratio as game_ratio on game_ratio.game_id = a.game_id") ->page($page,$row) ->where($map) ->group("my_time,game_names,root_id") ->order("my_time Desc") ->select(); +// dump($data);die(); $pagecount = M()->table('('.$count.') as a')->count(); foreach($data as $key => $value) { - $data[$key]['upstream'] = $value['pay_amount'] * 0.2; + + if ($value['games_ratio']) { + $data[$key]['upstream'] = $value['pay_amount'] * ($value['games_ratio']*0.01); + } else { + $data[$key]['upstream'] = $value['pay_amount'] * 0; + } if ($value['ratio']) { $data[$key]['downstream'] = $value['pay_amount'] * ($value['ratio']*0.01); } else { - $data[$key]['downstream'] = $value['pay_amount'] * 0.1; + $data[$key]['downstream'] = $value['pay_amount'] * 0; } + $value['turnover_ratio'] = json_decode($value['turnover_ratio'],true); -// array_push($value['turnover_ratio'],['turnover'=>1006,'ratio'=>30]); -// dump(json_encode($value['turnover_ratio']));die(); if (is_array($value['turnover_ratio'])) { foreach($value['turnover_ratio'] as $k =>$v) { From 7adb991d0e5b7a2bbc3f2691c69935f725105a0b Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 7 Jan 2020 18:18:56 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StatementMangementController.class.php | 49 ++ .../Admin/View/StatementMangement/lists.html | 479 ++++++++++++++++++ 2 files changed, 528 insertions(+) create mode 100644 Application/Admin/Controller/StatementMangementController.class.php create mode 100644 Application/Admin/View/StatementMangement/lists.html diff --git a/Application/Admin/Controller/StatementMangementController.class.php b/Application/Admin/Controller/StatementMangementController.class.php new file mode 100644 index 000000000..ec8bbbe47 --- /dev/null +++ b/Application/Admin/Controller/StatementMangementController.class.php @@ -0,0 +1,49 @@ +where($map) + ->select(); + + foreach($data as $key => $value) { + + $data[$key]['statement_type'] = $value['statement_type']?'公会对账单':'CP对账单'; + + } + + $this->assign('data',$data); + + $this->display(); + + } + +} diff --git a/Application/Admin/View/StatementMangement/lists.html b/Application/Admin/View/StatementMangement/lists.html new file mode 100644 index 000000000..414192cbc --- /dev/null +++ b/Application/Admin/View/StatementMangement/lists.html @@ -0,0 +1,479 @@ + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+
+ +
+
+ +  -  +
+ + +
+
+ + +
+ 搜索 +
+ +
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
对账单类型生成时间对账公司对账日期对账金额确认状态操作
aOh! 暂时还没有内容!
{$data.statement_type}{$data.create_time}{$data.company_name}{$data.statement_begin_time}-{$data.statement_end_time}{$data.statement_money}{$data.is_confirm}撤销 + 编辑
+
+ +
+
+ + 导出 + + {$_page|default=''} +
+ + +
+ + + + if(C('COLOR_STYLE')=='blue_color') echo ' + + '; + + + + + + + + + + From c6f798dc476efc864fb2efb073a1282ff3643c3c Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 7 Jan 2020 18:27:19 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E7=AE=A1=E7=90=86bug=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/StatementMangementController.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Application/Admin/Controller/StatementMangementController.class.php b/Application/Admin/Controller/StatementMangementController.class.php index ec8bbbe47..9a529ce84 100644 --- a/Application/Admin/Controller/StatementMangementController.class.php +++ b/Application/Admin/Controller/StatementMangementController.class.php @@ -36,6 +36,11 @@ class StatementMangementController extends ThinkController foreach($data as $key => $value) { + $data[$key]['create_time'] = date('Y-m-d H:i:s',$value['create_time']); + $data[$key]['statement_begin_time'] = date('Y-m-d H:i:s',$value['statement_begin_time']); + $data[$key]['statement_end_time'] = date('Y-m-d H:i:s',$value['statement_end_time']); + + $data[$key]['is_confirm'] = $data[$key]['is_confirm']?'确认':'未确认'; $data[$key]['statement_type'] = $value['statement_type']?'公会对账单':'CP对账单'; } From 602fb33fcc74f03f65b669bf8fea1d54d743523f Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Wed, 8 Jan 2020 14:39:23 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=9C=80=E6=B1=82?= =?UTF-8?q?=EF=BC=9A=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0-=E3=80=8B?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F-=E3=80=8B=E6=89=A9=E5=B1=95=E5=B7=A5?= =?UTF-8?q?=E5=85=B7-=E3=80=8B=E5=85=AC=E5=8F=B8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/ToolController.class.php | 11 ++ Application/Admin/View/Tool/company_info.html | 134 ++++++++++++++++++ 2 files changed, 145 insertions(+) create mode 100644 Application/Admin/View/Tool/company_info.html diff --git a/Application/Admin/Controller/ToolController.class.php b/Application/Admin/Controller/ToolController.class.php index 638c75b80..7f8dd1d22 100644 --- a/Application/Admin/Controller/ToolController.class.php +++ b/Application/Admin/Controller/ToolController.class.php @@ -639,6 +639,17 @@ class ToolController extends ThinkController { $this->display(); } + + /** + *公司信息管理 + */ + public function company_info() + { + $str = "company_info"; + $this->BaseConfig($str); + $this->meta_title = '公司信息管理'; + $this->display(); + } } diff --git a/Application/Admin/View/Tool/company_info.html b/Application/Admin/View/Tool/company_info.html new file mode 100644 index 000000000..3027beaf3 --- /dev/null +++ b/Application/Admin/View/Tool/company_info.html @@ -0,0 +1,134 @@ + + + + + + + + + + + +
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
公司名称 + + +
联系人 + + +
联系电话 + + +
邮寄地址 + + +
公司税号 + + +
收款方名称 + + +
银行账号 + + +
开户行 + + +
+ + +
+
+ + + +
+
+ + + +
+ + + + + +
+ + + + From ea140a430f2885d02c614dcd9fc28b5fe5d2d7f6 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 8 Jan 2020 17:02:26 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 83 +++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 3fb91a02a..e2eb146d7 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1336,9 +1336,11 @@ function templatelist(){ *返回游戏名称 */ function get_gamename($gid=0){ + if($gid == 0){return "未知";} $model = D("Game"); $list = $model->where("id=".$gid)->find(); +// return $list; return $list["game_name"]; } @@ -1826,4 +1828,85 @@ function getCompanyList() { } +function excelUpStreamTemplate() { + header("Content-type: text/html; charset=gb2312"); + error_reporting(E_ALL); + ini_set('display_errors', TRUE); + ini_set('display_startup_errors', TRUE); + + define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
'); + + date_default_timezone_set('Europe/London'); + Vendor("PHPExcel.PHPExcel"); + $objPHPExcel = new \PHPExcel(); + $objReader = \PHPExcel_IOFactory::createReader('Excel5'); + + //设置模板文件 + $objPHPExcel = $objReader->load("Runtime/upstream.xls"); + + + $objPHPExcel->getActiveSheet()->setCellValue('D2', 'chengzhi'); + + $objPHPExcel->getActiveSheet()->insertNewRowBefore(10,1)->mergeCells('J10:K10')->insertNewRowBefore(10,1)->mergeCells('J10:K10'); + + + ob_end_clean();//清除缓冲区,避免乱码 + header('pragma:public'); + header('Content-type:application/vnd.ms-excel;charset=utf-8;name="15415.xls"'); + header("Content-Disposition:attachment;filename=15415.xls");//attachment新窗口打印inline本窗口打印 + $objWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); + $objWriter->save('php://output'); + exit; + + } + +function excelDownStreamTemplate() { + header("Content-type: text/html; charset=gb2312"); + error_reporting(E_ALL); + ini_set('display_errors', TRUE); + ini_set('display_startup_errors', TRUE); + + define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
'); + + date_default_timezone_set('Europe/London'); + Vendor("PHPExcel.PHPExcel"); + $objPHPExcel = new \PHPExcel(); + $objReader = \PHPExcel_IOFactory::createReader('Excel5'); + + //设置模板文件 + $objPHPExcel = $objReader->load("upstream.xls"); + + + $objPHPExcel->getActiveSheet()->setCellValue('D2', 'chengzhi'); + + $objPHPExcel->getActiveSheet()->insertNewRowBefore(10,1); + + + ob_end_clean();//清除缓冲区,避免乱码 + header('pragma:public'); + header('Content-type:application/vnd.ms-excel;charset=utf-8;name="15415.xls"'); + header("Content-Disposition:attachment;filename=15415.xls");//attachment新窗口打印inline本窗口打印 + $objWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); + $objWriter->save('php://output'); + exit; + + } + +function getWithdrawNumber() { + + $map = []; + + $map['ext_field'] = ['neq',null]; + + $data = M('withdraw',"tab_") + ->field("widthdraw_number") + ->join("left join tab_statement as statement on tab_withdraw.widthdraw_number = statement.ext_field") + ->where("ext_field is null") + ->select(); + + return $data; + +} + + ?> From 326d9e5a12a3816c97b1a9f430b6ddf403d033d8 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Wed, 8 Jan 2020 17:13:57 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0-?= =?UTF-8?q?=E6=B8=B8=E6=88=8F-=E6=B8=B8=E6=88=8F=E7=BC=96=E8=BE=91?= =?UTF-8?q?=EF=BC=9A=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE-=E6=96=B0?= =?UTF-8?q?=E5=A2=9ECP=E6=B8=B8=E6=88=8F=E5=88=86=E6=88=90=E6=AF=94?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/GameController.class.php | 82 +- Application/Admin/View/Game/edit.html | 913 ++++++++++-------- 2 files changed, 608 insertions(+), 387 deletions(-) diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index 5a1cbf4dd..0e6fe84f4 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -405,12 +405,14 @@ class GameController extends ThinkController $data['introduction'] = str_replace("~~", "\r\n", $data['introduction']); $this->assign('data', $data); + $this->assign('game_id', $id); + + $game_ratio = M('cp_game_ratio', 'tab_')->where(array('is_del'=>"0","game_id"=>$id))->order('begin_total_amount asc')->select(); $this->meta_title = '编辑游戏'; $this->m_title = '游戏列表'; $this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Game/lists', 'status' => 1])->find()); - - + $this->assign('game_ratio',$game_ratio); $this->display(); } } @@ -761,4 +763,80 @@ class GameController extends ThinkController } + /** + * 编辑CP分成比例 + */ + public function edit_ratio(){ + $data = $_POST; + if($data['data_id']==0 || $data['data_id']==""){ //查询初始分成比例信息 + $initial_info = M('cp_game_ratio', 'tab_')->where("game_id=%d and begin_total_amount=0 and is_del=0",$data['game_id'])->find(); + } + + if($data['data_type']=='initial'){ //CP初始分成比例 + if($data['data_id']>0){ //修改初始CP分成比例 + $where = array(); + $where['is_del'] = "0"; + $where['game_id'] = $data['game_id']; + $where['id'] = array("neq",$data['data_id']); + $where['ratio'] = array("elt",$data['game_ratio']); + $info = M('cp_game_ratio', 'tab_') + ->where($where) + ->order("ratio asc") + ->find(); + if($info){ + die(json_encode(array("result"=>"0","desc"=>"CP分成比例应小于".$info['ratio']."%"))); + } + M('cp_game_ratio', 'tab_')->where("id=%d",$data['data_id'])->data(array("ratio"=>$data['game_ratio'],"update_time"=>time()))->save(); + }else{ + if($initial_info){ + M('cp_game_ratio', 'tab_')->where("id=%d",$initial_info['id'])->data(array("ratio"=>$data['game_ratio'],"update_time"=>time()))->save(); + }else{ + M('cp_game_ratio', 'tab_')->data(array("game_id"=>$data['game_id'],"ratio"=>$data['game_ratio'],"begin_total_amount"=>0,"add_time"=>time(),"update_time"=>time()))->add(); + } + } + }else{ //CP阶梯分成档位 + if($data['data_id']>0) { //修改阶梯分成 + $where = array(); + $where['game_id']= $data['game_id']; + $where['is_del'] = "0"; + $where['id']=array("neq",$data['data_id']); + $exis_info = M('cp_game_ratio', 'tab_') + ->where($where) + ->where("begin_total_amount='%s' or ratio = '%f'",array($data['total_amount'],$data['game_ratio'])) + ->find(); + if($exis_info){ + die(json_encode(array("result"=>"0","desc"=>"分成档位已存在"))); + } + + if($initial_info['game_ratio']>=$data['game_ratio']){ + die(json_encode(array("result"=>"0","desc"=>"分成比例不得小于初始比例"))); + } + + M('cp_game_ratio', 'tab_')->where("id=%d",$data['data_id'])->data(array("ratio"=>$data['game_ratio'],"begin_total_amount"=>$data['total_amount'],"update_time"=>time()))->save(); + }else{ + if(!$initial_info){ + die(json_encode(array("result"=>"0","desc"=>"请先设置初始CP分成比例"))); + } + $exis_info = M('cp_game_ratio', 'tab_')->where("game_id=%d and (begin_total_amount='%s' or ratio = '%f') and is_del=0",array($data['game_id'],$data['total_amount'],$data['game_ratio']))->find(); + if($exis_info){ + die(json_encode(array("result"=>"0","desc"=>"分成档位已存在"))); + }else{ + $max_info = M('cp_game_ratio', 'tab_')->field("max(ratio) as max_ratio,max(begin_total_amount) as max_amount")->where("game_id=%d and is_del=0",$data['game_id'])->find(); + if($max_info['max_ratio'] >= $data['game_ratio'] || $max_info['max_amount']>=$data['total_amount']){ + die(json_encode(array("result"=>"0","desc"=>"新增分成档位金额或分成比例需大于现有分成档位"))); + } + M('cp_game_ratio', 'tab_')->data(array("game_id"=>$data['game_id'],"ratio"=>$data['game_ratio'],"begin_total_amount"=>$data['total_amount'],"add_time"=>time(),"update_time"=>time()))->add(); + } + } + } + echo(json_encode(array("result"=>"1","desc"=>"数据保存成功"))); + } + + /** + * 删除CP分成比例 + */ + public function delete_ratio(){ + M('cp_game_ratio', 'tab_')->where("id=".$_POST['data_id'])->data(array("is_del"=>"1","update_time"=>time()))->save(); + echo(json_encode(array("result"=>"1","desc"=>"删除成功"))); + } } diff --git a/Application/Admin/View/Game/edit.html b/Application/Admin/View/Game/edit.html index f35767f1f..884d8da2a 100644 --- a/Application/Admin/View/Game/edit.html +++ b/Application/Admin/View/Game/edit.html @@ -5,6 +5,23 @@ @@ -226,18 +243,18 @@ 游戏ICON - - + --> +
@@ -283,14 +300,14 @@ 游戏推荐图 - + @@ -307,18 +324,18 @@
- - - 470*350px(用于官网首屏推荐游戏位展示) - - + + + 470*350px(用于官网首屏推荐游戏位展示) + + - - 游戏截图 - - + + 游戏截图 + +
@@ -333,13 +350,13 @@
- 建议尺寸:750*1334,图片大小不超过3M - - + 建议尺寸:750*1334,图片大小不超过3M + + - - 落地页图片 - + + 落地页图片 +
@@ -352,9 +369,9 @@
- 横版游戏建议尺寸:16:9,1280*720px及以上;竖版游戏建议尺寸:9:16,720*1280px及以上,用于游戏详情页内展示 - - + 横版游戏建议尺寸:16:9,1280*720px及以上;竖版游戏建议尺寸:9:16,720*1280px及以上,用于游戏详情页内展示 + + 落地页视频 @@ -448,15 +465,13 @@ - + - - - - - 知识产权 - + + + 知识产权 +
@@ -464,26 +479,26 @@
- - -
- - - - - -
- - - - - - - - - + + + +
游戏名称: - -
运营平台: +
+
+ + +
+ + + + + + + + + - + + - - + + - - - - + + - - + + + - - - + + - + 选择“第三方链接”后推广员后台-游戏列表-申请游戏页面将不显示该游戏,推广员无法进行申请。 + + - - - + + - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - + + + - - + + - - - - -
游戏名称: + +
运营平台: @@ -492,15 +507,15 @@ -
下载状态:
下载状态: + + - + -
下载端口: +
下载端口: - 选择“第三方链接”后推广员后台-游戏列表-申请游戏页面将不显示该游戏,推广员无法进行申请。 -
* - 第三方下载地址(安卓) - +
* + 第三方下载地址(安卓) + - - -
* - 第三方原包大小 -
* + 第三方原包大小 +
超级签Token: - -
超级签URL: - -
超级签Token: + +
超级签URL: + +
超级签状态: +
超级签状态: - + -
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - + + +
推广充值CPS比例 - % - 此处比例为推广结算时CPS模式的分成比例 -
推广注册CPA单价 - - 此处数值为推广结算时CPA模式的注册单价 -
开发者分成比例 - % - 此处比例为开发者结算时的分成比例 -
扶持额度 - -   设置游戏扶持额度 -
扶持比例 - % - 设置游戏扶持比例 -
ios版支付方式 + +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - - - - - - + 开启强更后,若后台原包更新,则用户必须重新下载才可以进入游戏 + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - + + + + - - - - + + + + - - -
推广充值CPS比例 + % + 此处比例为推广结算时CPS模式的分成比例 +
推广注册CPA单价 + + 此处数值为推广结算时CPA模式的注册单价 +
CP分成比例 + + + % + CP游戏分成比例 +
CP流水大于等于 + + 分成比例 + + % + +
CP流水大于等于 + 分成比例 + % + + + + + + + +
开发者分成比例 + % + 此处比例为开发者结算时的分成比例 +
扶持额度 + +   设置游戏扶持额度 +
扶持比例 + % + 设置游戏扶持比例 +
ios版支付方式 - iOS上架版游戏内支付方式的配置开关,二选一,默认是第三方支付;非上架版在系统-扩展工具-支付设置内进行配置(同Android版) - -
支付宝 + iOS上架版游戏内支付方式的配置开关,二选一,默认是第三方支付;非上架版在系统-扩展工具-支付设置内进行配置(同Android版) + +
支付宝 -
微信 +
微信 -
快捷支付 +
快捷支付 -
是否开启强更 +
是否开启强更 - 开启强更后,若后台原包更新,则用户必须重新下载才可以进入游戏 -
游戏标示 - - 苹果游戏分包时需填写的游戏标示,格式无特别要求 -
游戏key - - 游戏支付通知时的加密key,可自由设置,长度不得超过32位字符串,设置完必须提供给CP方进行同步 -
游戏标示 + + 苹果游戏分包时需填写的游戏标示,格式无特别要求 +
游戏key + + 游戏支付通知时的加密key,可自由设置,长度不得超过32位字符串,设置完必须提供给CP方进行同步 +
游戏支付通知地址 - - 此处功能为平台用户游戏充值时,通知CP方所用,该地址由CP方提供 -
访问秘钥 - - SDK访问服务器时加密key,可自由设置,长度不得超过20位字符串 -
威富通商户号 - - 威富通申请成功以后,威富通方提供的商户号,在此处添加(需要删除,在支付配置里设置即可) +
游戏支付通知地址 + + 此处功能为平台用户游戏充值时,通知CP方所用,该地址由CP方提供 +
访问秘钥 + + SDK访问服务器时加密key,可自由设置,长度不得超过20位字符串 +
威富通商户号 + + 威富通申请成功以后,威富通方提供的商户号,在此处添加(需要删除,在支付配置里设置即可) -
威富通秘钥 - - 威富通申请成功以后,威富通方提供的秘钥,在此处添加(需要删除,在支付配置里设置即可) +
威富通秘钥 + + 威富通申请成功以后,威富通方提供的秘钥,在此处添加(需要删除,在支付配置里设置即可) -
游戏支付appid - - 使用微信支付时需要的appid,需要到微信开放平台申请创建,包括官方微信支付和威富通里的微信支付(需要删除,在支付配置里设置即可) -
游戏合作id - - 游戏对接时需要的合作id,此id由CP方提供(此功能根据不同游戏CP确定是否需要使用) -
游戏包名 - - 在微信开放平台申请创建的应用包名(app.webchat.payment.agree),若无此项可不填写(待定) +
游戏支付appid + + 使用微信支付时需要的appid,需要到微信开放平台申请创建,包括官方微信支付和威富通里的微信支付(需要删除,在支付配置里设置即可) +
游戏合作id + + 游戏对接时需要的合作id,此id由CP方提供(此功能根据不同游戏CP确定是否需要使用) +
游戏包名 + + 在微信开放平台申请创建的应用包名(app.webchat.payment.agree),若无此项可不填写(待定) -
游戏签名 - - 在微信开放平台申请创建的应用签名(fd0e6a444fd988bf23ce8a1818623b58),若无此项可不填写(待定) +
游戏签名 + + 在微信开放平台申请创建的应用签名(fd0e6a444fd988bf23ce8a1818623b58),若无此项可不填写(待定) -
客服QQ - - 在游戏里遇到问题点击联系QQ +
客服QQ + + 在游戏里遇到问题点击联系QQ -
-
- -
-
-

功能说明:H5分享页面,每个游戏按需如下要求进行配置;推广员申请渠道包时,自动生成对应的H5下载页面,便于推广员进行快速推广。

-

例如:{$_SERVER['HTTP_HOST']}{:str_ireplace(_PHP_FILE_,'/Index.php',U('Home/Index/game_view'))}

-
- - - - - - + + + +
页面标题: - -
+
+ +
+
+

功能说明:H5分享页面,每个游戏按需如下要求进行配置;推广员申请渠道包时,自动生成对应的H5下载页面,便于推广员进行快速推广。

+

例如:{$_SERVER['HTTP_HOST']}{:str_ireplace(_PHP_FILE_,'/Index.php',U('Home/Index/game_view'))}

+
+ + + + + + - - - + + - + 512*512px + + - - - + + + 720*1280px及以上 + -
页面标题: + +
- 分享游戏图标 - +
+ 分享游戏图标 + @@ -828,17 +883,17 @@ - 512*512px -
- 分享背景图片 - +
+ 分享背景图片 + @@ -848,11 +903,11 @@ - 720*1280px及以上 -
+
@@ -986,7 +1041,7 @@ $("#cover_id_icon").val(data.id); src = data.url || '__ROOT__' + data.path; $("#cover_id_icon").parent().find('.upload-img-box').html( - '
' + '
' ); } else { updateAlert(data.info,'tip_error'); @@ -1021,7 +1076,7 @@ $("#cover_id_cover").val(data.id); src = data.url || '__ROOT__' + data.path; $("#cover_id_cover").parent().find('.upload-img-box').html( - '
' + '
' ); } else { updateAlert(data.info,'tip_error'); @@ -1044,9 +1099,9 @@ 'removeTimeout' : 1, 'fileTypeExts' : '*.jpg; *.jpeg; *.png; *.gif;', "onUploadSuccess" : upload_picture_detail{$field.name}, - 'onFallback' : function() { + 'onFallback' : function() { // alert('未检测到兼容版本的Flash.'); - } + } }); function upload_picture_detail{$field.name}(file, data){ var data = $.parseJSON(data); @@ -1055,7 +1110,7 @@ $("#detail_id_icon").val(data.id); src = data.url || '__ROOT__' + data.path; $("#detail_id_icon").parent().find('.upload-img-box').html( - '
' + '
' ); } else { updateAlert(data.info,'tip_error'); @@ -1090,7 +1145,7 @@ $("#dow_id_icon").val(data.id); src = data.url || '__ROOT__' + data.path; $("#dow_id_icon").parent().find('.upload-img-box').html( - '
' + '
' ); } else { updateAlert(data.info,'tip_error'); @@ -1125,7 +1180,7 @@ $("#back_map_detail").val(data.id); src = data.url || '__ROOT__' + data.path; $("#back_map_detail").parent().find('.upload-img-box').html( - '
' + '
' ); } else { updateAlert(data.info,'tip_error'); @@ -1406,13 +1461,13 @@ // 文件上传过程中创建进度条实时显示。 uploaderFlooringVideoPageCover.on( 'uploadProgress', function(file, percentage) { var $li = $( '#'+file.id ), - $percent = $li.find('.progress .progress-bar'); + $percent = $li.find('.progress .progress-bar'); // 避免重复创建 if ( !$percent.length ) { $percent = $('
' + - '
' + - '
' + - '
').appendTo( $li ).find('.progress-bar'); + '
' + + '
' + + '').appendTo( $li ).find('.progress-bar'); } $li.find('p.state').text('上传中'); $percent.css( 'width', percentage * 100 + '%' ); @@ -1493,21 +1548,21 @@ uploaderFile.on( 'fileQueued', function( file ) { $("#up_status").remove(); $("#thelist").append( '
' + - '

' + file.name + '

' + - '

等待上传...

' + - '
' ); + '

' + file.name + '

' + + '

等待上传...

' + + '' ); }); // 文件上传过程中创建进度条实时显示。 uploaderFile.on( 'uploadProgress', function(file, percentage) { var $li = $( '#'+file.id ), - $percent = $li.find('.progress .progress-bar'); + $percent = $li.find('.progress .progress-bar'); // 避免重复创建 if ( !$percent.length ) { $percent = $('
' + - '
' + - '
' + - '
').appendTo( $li ).find('.progress-bar'); + '
' + + '
' + + '').appendTo( $li ).find('.progress-bar'); } $li.find('p.state').text('上传中'); $percent.css( 'width', percentage * 100 + '%' ); @@ -1647,13 +1702,13 @@ // 文件上传过程中创建进度条实时显示。 uploaderImg.on( 'uploadProgress', function( file, percentage ) { var $li = $( '#'+file.id ), - $percent = $li.find('.progress .progress-bar'); + $percent = $li.find('.progress .progress-bar'); // 避免重复创建 if ( !$percent.length ) { $percent = $('
' + - '
' + - '
' + - '
').appendTo( $li ).find('.progress-bar'); + '
' + + '
' + + '').appendTo( $li ).find('.progress-bar'); } $li.find('p.state').text('上传中'); @@ -1751,17 +1806,17 @@ function up_dow_num(){ layer.prompt( - {formType:0,title:"请输入下载数量",value:''}, - function(val,index,elem){ - $('input[name="dow_num"]').val(val); - layer.close(index); - } + {formType:0,title:"请输入下载数量",value:''}, + function(val,index,elem){ + $('input[name="dow_num"]').val(val); + layer.close(index); + } ); } - +