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; + +} + + ?> 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/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php index 8eede5401..7f6f4bde7 100644 --- a/Application/Admin/Controller/MemberController.class.php +++ b/Application/Admin/Controller/MemberController.class.php @@ -138,7 +138,7 @@ class MemberController extends ThinkController //计算用户列表 $data = M("user","tab_") - ->field("tab_user.id,`device_number`,`age_status`,`account`,`balance`,`gold_coin`,`alipay`,tab_user.promote_id,`register_type`,tab_user.promote_account,`register_time`,`lock_status`,`register_way`,`register_ip`,`login_time`,`check_status`,IFNULL(sum(ss.pay_amount), 0) AS recharge_total") + ->field("tab_user.id,`device_number`,`age_status`,`account`,`balance`,`gold_coin`,`alipay`,tab_user.promote_id,`register_type`,tab_user.promote_account,`register_time`,`lock_status`,lock_remark,`register_way`,`register_ip`,`login_time`,`check_status`,IFNULL(sum(ss.pay_amount), 0) AS recharge_total") ->where($map) ->group("tab_user.id") // ->page($page, $row) @@ -1230,7 +1230,12 @@ class MemberController extends ThinkController if ($accounts) $map['account'] = ['in', array_unique(explode("\n", $accounts))]; if ($id) $map['id'] = ['in', array_unique(explode("\n", $id))]; $users = M('user', 'tab_')->where($map)->field('id')->select(); - $res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status]); + if($_POST['lock_remark']){ + $res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status,"lock_remark" => $_POST['lock_remark']]); + }else{ + $res = M('user', 'tab_')->where($map)->setField(['lock_status' => $lock_status]); + } + if ($res) { foreach ($users as $item) { \Think\Log::actionLog('Member/lock_status', 'Member', $item['id']); 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/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); + } ); } - + diff --git a/Application/Admin/View/Member/edit.html b/Application/Admin/View/Member/edit.html index 2bae45352..01d3c5afe 100644 --- a/Application/Admin/View/Member/edit.html +++ b/Application/Admin/View/Member/edit.html @@ -13,7 +13,7 @@
-
+
@@ -475,4 +478,32 @@ }); }); + + diff --git a/Application/Admin/View/Member/user_info.html b/Application/Admin/View/Member/user_info.html index 42450fb62..ea359cb77 100644 --- a/Application/Admin/View/Member/user_info.html +++ b/Application/Admin/View/Member/user_info.html @@ -211,12 +211,12 @@ - - + @@ -227,6 +227,7 @@ + @@ -275,13 +276,13 @@ - + + @@ -321,8 +325,11 @@ @@ -355,7 +362,7 @@
导出 + href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}" target="_blank">导出 {$_page|default=''} @@ -582,4 +589,31 @@ } + diff --git a/Application/Admin/View/Partner/add.html b/Application/Admin/View/Partner/add.html index d4efaf0cd..3ec975c91 100644 --- a/Application/Admin/View/Partner/add.html +++ b/Application/Admin/View/Partner/add.html @@ -37,14 +37,14 @@
- + - + diff --git a/Application/Admin/View/Partner/edit.html b/Application/Admin/View/Partner/edit.html index 902c9b0dd..755bf89a7 100644 --- a/Application/Admin/View/Partner/edit.html +++ b/Application/Admin/View/Partner/edit.html @@ -37,14 +37,14 @@ - + - + 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 @@ + + + + + + + + + + + +
+ + +
+
+ +
+ +
账号状态 - - - - + + + 可设置玩家账号的登录状态,锁定即无法登录本平台
金币 - 绑定支付宝 - - 小号 - VIP等级 注册IP 最后登录时间 设备号锁定备注 账号状态 拉黑状态 操作{$data.balance} {$data.recharge_total} {$data.gold_coin|default='0.00'}{$data.alipay|default='--'} {:get_vip_level($data['recharge_total'])} @@ -309,6 +310,9 @@ {$data.device_number|encryptStr} + {$data.lock_remark} + 已{:get_info_status($data['lock_status'],4)} 查看 - 启用 - {:L('Lock')} + + 启用 + + {:L('Lock')} +
联系人:*联系人:
联系电话:*联系电话:
联系人:*联系人:
联系电话:*联系电话:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
公司名称 + + +
联系人 + + +
联系电话 + + +
邮寄地址 + + +
公司税号 + + +
收款方名称 + + +
银行账号 + + +
开户行 + + +
+ + + +
+ + + + + + + + + + + + + + +
+ + + + diff --git a/Data/update.sql b/Data/update.sql index f8d93b7b5..c0d668310 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -970,4 +970,18 @@ CREATE TABLE `tab_statement` ( KEY `link_phone` (`link_phone`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='cp/公会对账单'; +-- 新增CP游戏分成比例表 2020-01-09 郑昌隆 +CREATE TABLE `tab_cp_game_ratio` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `game_id` int(11) DEFAULT '0' COMMENT '游戏ID', + `ratio` decimal(5,2) DEFAULT '0.00' COMMENT '分成比率', + `begin_total_amount` decimal(11,2) DEFAULT '0.00' COMMENT '分成开始档位总流水', + `add_time` int(11) DEFAULT '0' COMMENT '添加时间', + `update_time` int(11) DEFAULT '0' COMMENT '更新时间', + `is_del` tinyint(2) DEFAULT '0' COMMENT '1-已删除', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; + +-- 玩家列表账户锁定添加备注 2020-01-09 郑昌隆 +ALTER TABLE `tab_user` ADD COLUMN `lock_remark` varchar(512) NOT NULL DEFAULT '' COMMENT '账号锁定原因' after lock_status;