Merge branches 'dev' and 'dev_zyx' of 47.111.118.107:/srv/git/platform into dev_zyx

master
zhengyongxing 5 years ago
commit ad8dd94e32

@ -860,7 +860,11 @@ class ExportController extends Controller
$map['spend_ip'] = array('like', '%' . trim($_REQUEST['spend_ip']) . '%');
unset($_REQUEST['spend_ip']);
}
if (isset($_REQUEST['time-start']) && isset($_REQUEST['time-end'])) {
$map['pay_time'] = array('BETWEEN', array(strtotime($_REQUEST['time-start']), strtotime($_REQUEST['time-end']) + 24 * 60 * 60 - 1));
unset($_REQUEST['time-start']);
unset($_REQUEST['time-end']);
}
if (isset($_REQUEST['timestart']) && isset($_REQUEST['timeend'])) {
$map['pay_time'] = array('BETWEEN', array(strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 24 * 60 * 60 - 1));
unset($_REQUEST['timestart']);
@ -1004,7 +1008,7 @@ class ExportController extends Controller
array('pay_amount', "充值平台币"),
array('pay_way', "充值方式", 'get_pay_way', '*'),
array('pay_ip', "充值ip"),
array('create_time', "充值时间", 'time_format'),
array('create_time', "充值时间"),
array('pay_status', L('Order_status'), 'get_info_status', '*', '9'),
array('', "共计充值{$total}"),
);
@ -1012,6 +1016,10 @@ class ExportController extends Controller
->where($map)
->order('id DESC')
->select();
foreach ($xlsData as $key => $value) {
$xlsData[$key]['create_time'] = date('Y-m-d H:i:s', $value['create_time']);
}
// dd($xlsData);
break;
case 9:
$xlsName = $xlsName?$xlsName:"平台币发放";
@ -1542,6 +1550,7 @@ class ExportController extends Controller
$xlsName = $xlsCell = $xlsData = [];
}
//数据处理
foreach ($xlsData as $key => $val) {
foreach ($xlsCell as $k => $v) {
@ -3472,6 +3481,10 @@ if ($key == 'model'){
$map['user_account'] = array('like', '%' . trim($_REQUEST['account']) . '%');
}
if (isset($_REQUEST['promote_id'])) {
$map['promote_id'] = $_REQUEST['promote_id'];
}
// $map['login_time'] = array('neq', 0);
$page = intval($_REQUEST['p']);

@ -209,9 +209,9 @@ class FileController extends AdminController
); //TODO:上传到远程服务器
// 添加水印
if ($_REQUEST['flag']) {
$this->addWatermarkOnPic($info['download']);
}
// if ($_REQUEST['flag']) {
// $this->addWatermarkOnPic($info['download']);
// }
/* 记录图片信息 */
if ($info) {
@ -249,8 +249,6 @@ class FileController extends AdminController
C("UPLOAD_{$file_driver}_CONFIG"),
$_REQUEST['flag']
); //TODO:上传到远程服务器
/* 记录图片信息 */
if ($info) {
$return['status'] = 1;

@ -788,13 +788,20 @@ class MemberController extends ThinkController
$map['server_name'] = $_REQUEST['server_name'];
unset($_REQUEST['server_name']);
}
if (isset($_REQUEST['promote_id'])) {
$map['promote_id'] = $_REQUEST['promote_id'];
unset($_REQUEST['promote_id']);
}
// $map['type'] = 1;
// $map['login_time'] = ['exp', 'login_time<>0'];
$extend = array();
$extend['map'] = $map;
$count = M('UserLoginRecord','tab_')->field('user_id')->where($extend['map'])->group('user_id')->select(false);
$sql = "select count(user_id) as count from ({$count})t";
$count = M('UserLoginRecord','tab_')->query($sql);
$this->m_title = '登录记录';
$this->assign('user_count',$count[0]['count']);
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Member/login_record', 'status' => 1])->find());
parent::lists("UserLoginRecord", $p, $extend['map']);

@ -132,9 +132,9 @@ class MendController extends ThinkController {
$id = I('id');
$status = M('ShiftTask')->where(['id' => $id,'status' => 0])->save(['status' => 2]);
if ($status) {
$this->success('取消补链成功', U('lists'), 2);
$this->ajaxReturn(array("status"=>1,"url"=> U('lists')));
} else {
$this->error("取消失败,或补链已生效",U('lists'));
$this->ajaxReturn(array("status"=>0,"url"=> U('lists')));
}
}
}

@ -604,7 +604,11 @@ class StatController extends ThinkController
->where($map)
->group('user_id')
->find();
$data[$key]['keep_num'] = round($num['num']/$data[$key]['register_num'],4)*100;
if (!empty($data[$key]['register_num'])) {
$data[$key]['keep_num'] = round($num['num']/$data[$key]['register_num'],4)*100;
} else {
$data[$key]['keep_num'] = 0;
}
//充值
$map = $map_list;
empty($game_name ) || $map['game_name'] = array('like','%'.$game_name.'%');
@ -638,12 +642,24 @@ class StatController extends ThinkController
$data[$key]['new_pop'] = $query[0]['num'];
//付费率
$data[$key]['spend_rate'] = round($data[$key]['spend_people']/$data[$key]['act_user'],4)*100;
if (!empty($data[$key]['act_user'])) {
$data[$key]['spend_rate'] = round($data[$key]['spend_people']/$data[$key]['act_user'],4)*100;
} else {
$data[$key]['spend_rate'] = 0;
}
//ARPU
$data[$key]['ARPU'] = round($data[$key]['spend']/$data[$key]['act_user'],2);
//ARPPU
$data[$key]['ARPPU'] = round($data[$key]['spend']/$data[$key]['spend_people'],2);
if (!empty($data[$key]['act_user'])) {
$data[$key]['ARPU'] = round($data[$key]['spend']/$data[$key]['act_user'],2);
} else {
$data[$key]['ARPU'] = 0;
}
//ARPPU
if (!empty($data[$key]['spend_people'])) {
$data[$key]['ARPPU'] = round($data[$key]['spend']/$data[$key]['spend_people'],2);
} else {
$data[$key]['ARPPU'] = 0;
}
//累计付费玩家
$map = $map_list;
empty($hasbindcoins) || $map['pay_way'] = $hasbindcoins['pay_way'];
@ -1144,7 +1160,11 @@ class StatController extends ThinkController
->join("right join tab_user_login_record as ur on ur.user_id = tab_user.id and FROM_UNIXTIME(ur.login_time,'%Y-%m-%d') = '{$login_time}'")
->where($mapl)
->find();
$data[$key]['keep_num'] = round($num['num']/$data[$key]['register_num'],4)*100;
if (!empty($data[$key]['register_num'])) {
$data[$key]['keep_num'] = round($num['num']/$data[$key]['register_num'],4)*100;
} else {
$data[$key]['keep_num'] = 0;
}
//充值
$mapl = $map_list;
empty($game_name ) || $mapl['game_name'] = array('like','%'.$game_name.'%');
@ -1157,15 +1177,26 @@ class StatController extends ThinkController
//付费玩家数
$data[$key]['spend_people'] = $spend['people'];
//付费率
$data[$key]['spend_rate'] = round($data[$key]['spend_people']/$data[$key]['act_user'],4)*100;
if (!empty($data[$key]['act_user'])) {
$data[$key]['spend_rate'] = round($data[$key]['spend_people']/$data[$key]['act_user'],4)*100;
} else {
$data[$key]['spend_rate'] = 0;
}
//ARPU
$data[$key]['ARPU'] = round($data[$key]['spend']/$data[$key]['act_user'],2);
if (!empty($data[$key]['act_user'])) {
$data[$key]['ARPU'] = round($data[$key]['spend']/$data[$key]['act_user'],2);
} else {
$data[$key]['ARPU'] = 0;
}
//ARPPU
$data[$key]['ARPPU'] = round($data[$key]['spend']/$data[$key]['spend_people'],2);
if($data[$key]['register_num']==0&&$data[$key]['act_user']==0&&$data[$key]['keep_num']==0&&$data[$key]['spend']==0&&$data[$key]['spend_people']==0){
unset($data[$key]);
if (!empty($data[$key]['spend_people'])) {
$data[$key]['ARPPU'] = round($data[$key]['spend']/$data[$key]['spend_people'],2);
} else {
$data[$key]['ARPPU'] = 0;
}
// if($data[$key]['register_num']==0&&$data[$key]['act_user']==0&&$data[$key]['keep_num']==0&&$data[$key]['spend']==0&&$data[$key]['spend_people']==0){
// unset($data[$key]);
// }
}
$count=count($data);
if($count > $row){
@ -1180,6 +1211,7 @@ class StatController extends ThinkController
$this->assign('list_data',$data);
$this->display();
}
function game_analysis(){
if($_REQUEST['time-start']!=''&&$_REQUEST['time-end']!=''){
$start=$_REQUEST['time-start'];
@ -1375,7 +1407,7 @@ class StatController extends ThinkController
$model = M('device_statistics','tab_');
if ($type == 0) {
$return = $model->sum('new_device');
$return = $model->where(['time'=>['neq',0]])->sum('new_device');
// $return = $device->all_device();
} else if($type == 1) {
$return = $model->where(['time'=>array('between',[$todaystart,$todaystart+86399])])->sum('new_device');

@ -142,9 +142,15 @@ class TimingController extends AdminController {
//当日新增设备
$newSql = M('device_record','tab_')->field('min(create_time) as create_time,model,unique_code,id')->where(['version'=>1])->group('unique_code')->select(false);
$data['new_device'] = M('device_record','tab_')->table('(' . $newSql . ') as a')->where(['create_time'=>array('between',[$startTime,$startTime+86399])])->order('create_time')->count();
$data['time'] = $startTime;
echo $data['new_device'].' ';
$duration = $this->duration(['create_time'=>array('between',[$startTime-86400*7,$startTime-1])]);
$newSqls = M('device_record','tab_')->field('min(create_time) as create_time,model,unique_code,id')->group('unique_code')->select(false);
$data['duration7'] = ($duration/M('device_record','tab_')->table('(' . $newSqls . ') as a')->where(['create_time'=>array('between',[$startTime-86400*7,$startTime-1])])->order('create_time')->count())/7;
$data['version'] = 1;
$getStatistics = M('device_statistics','tab_')->where(['time'=>$startTime,'version'=>1])->find();
echo "\n";
if (!$getStatistics) {
@ -152,13 +158,14 @@ class TimingController extends AdminController {
} else {
M('device_statistics','tab_')->where(['time'=>$startTime,'version'=>1])->save($data);
}
$data['duration7'] = 0;
echo date("Y-m-d",$startTime).' 苹果 ';
//当日新增设备
$newSql = M('device_record','tab_')->field('min(create_time) as create_time,model,unique_code,id')->where(['version'=>2])->group('unique_code')->select(false);
$data['new_device'] = M('device_record','tab_')->table('(' . $newSql . ') as a')->where(['create_time'=>array('between',[$startTime,$startTime+86399])])->order('create_time')->count();
echo $data['new_device'].' ';
$data['version'] = 2;
$getStatistics = M('device_statistics','tab_')->where(['time'=>$startTime,'version'=>2])->find();
echo "\n";

@ -90,6 +90,21 @@
<div class="input-list">
<input type="text" name="login_ip" class="" placeholder="登录IP" value="{:I('login_ip')}">
</div>
<div class="input-list search_item input-list-gamenoticestatus">
<select name="promote_level" style="color:#444" class="select_gallery" id="promote_level">
<option value="">请选择推广员等级</option>
<option value="1" <?php if ($_POST['promote_level'] == 1):?>selected<?php endif;?>>会长</option>
<option value="2" <?php if ($_POST['promote_level'] == 2):?>selected<?php endif;?>>部门长</option>
<option value="3" <?php if ($_POST['promote_level'] == 3):?>selected<?php endif;?>>组长</option>
<option value="4" <?php if ($_POST['promote_level'] == 4):?>selected<?php endif;?>>组员</option>
</select>
-
</div>
<div class="input-list search_item input-list-gamenoticestatus">
<select name="promote_id" style="color:#444" class="select_gallery" id="promote_id">
<option value="">请选择推广员</option>
</select>
</div>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search"
url="{:U('Member/login_record','model='.$model['name'] . '&row=' . I('row'),false)}">
@ -139,6 +154,10 @@
</td>
</tr>
</volist>
<tr>
<td colspan="2">合计</td>
<td colspan="4">&#12288;&#12288;登录玩家:{$user_count}人 </td>
</tr>
</empty>
</tbody>
</table>
@ -178,6 +197,7 @@
highlight_subnav("{:U('Member/login_record')}");
$(function () {
<volist name = ":I('get.')" id = "vo" > Think.setValue('{$key}', "{$vo}");
</volist >
$(".select_gallery").select2();
@ -276,6 +296,28 @@
$("#game_type").change();
});
$("#game_name").change();
var promote_id = "{:I('promote_id')}";
$("#promote_level").change(function(){
$.ajax({
url:"{:U('Ajax/getPromotersByLevel')}",
type:"get",
data:{level:$("#promote_level option:selected").val()},
dataType:'json',
success:function(response){
str = '<option value="">请选择推广员</option><option value="0"'+(promote_id && 0 == promote_id?'selected':'')+'>官方渠道</option>';
data = response.data;
for (var i in data){
str += "<option value='"+data[i].id+"' "+(promote_id && data[i].id == promote_id?'selected':'')+">"+data[i].nickname+"</option>"
}
$("#promote_id").empty();
$("#promote_id").append(str);
$("#promote_id").select2();
}
})
});
$("#promote_level").change();
})
</script>
</block>

@ -130,6 +130,7 @@
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script type="text/javascript">
var start = $("#bind_time").val();
@ -151,8 +152,25 @@ Think.setValue("prmoote_id_to", {$data.promote_id|default = "''"});
$('#submit').click(function(){
//获取id
var taskid = $(this).data("id");
window.location.href = "{:U('Mend/cancelShift')}"+"&id="+taskid;
$.ajax({
type:"get",
dataType:"json",
url:"{:U('Mend/cancelShift')}"+"&id="+taskid,
success:function(data){
if(data.status == 1){
layer.msg('取消补链成功',function(){
window.location.href = data.url;
});
}else{
layer.msg('取消补链失败,或补链已经生效无法取消')
}
},
error:function(){
layer.msg('网络错误');
}
})
// window.location.href = "{:U('Mend/cancelShift')}"+"&id="+taskid;
});
$(function(){
$('.time').datetimepicker({

@ -171,7 +171,7 @@
"swf" : "__STATIC__/uploadify/uploadify.swf",
"fileObjName" : "download",
"fileObjName" : "download",
"buttonText" : "上传文档",
@ -181,7 +181,7 @@
'removeTimeout' : 1,
'fileTypeExts' : '*.doc; *.docx;',
'fileTypeExts' : '*',
"onUploadSuccess" : uploadPicture{$field.name},

@ -1854,7 +1854,13 @@ class DownloadController extends BaseController {
->group('tab_apply.game_id')
->order('g.sort desc,g.id desc')
->select();
$allGameIs = M('Apply', 'tab_')
->field('distinct tab_apply.game_id')
->join('tab_game as g on g.id = tab_apply.game_id')
->join($serverJoin)
->where($map)
->select();
$allGameIs = array_column($allGameIs, 'game_id');
$records = [];
if (!empty($data)) {
if (intval($endTime - $begTime) / (24 * 3600) <= 30) {
@ -1902,6 +1908,30 @@ class DownloadController extends BaseController {
'spend_voucher' => 0,
];
}
$params['all_data'] = 1;
$params['game_ids'] = $allGameIs;
$allData['game_name'] = "合计";
$allData['sdk_version'] = '--';
$allData['role_num'] = $userRepository->getCreateRoleCountByGame($params);//创角数
$allData['user_num'] = $userRepository->getCreateRoleUserCountByGame($params);//创角用户
$allData['new_user_num'] = $userRepository->getNewCreateRoleUserCountByGame($params);//新创角用户
$allData['new_device_num'] = $userRepository->getNewCreateRoleDeviceCountByGame($params);//新创角设备
$allData['new_ip_num'] = $userRepository->getNewCreateRoleIpCountByGame($params);//新创角IP
$allData['login_user_num'] = $userRepository->getLoginCountGroupByGame($params);//登录用户数
$allData['spend_user_num'] = $spendRepository->getPayUserCountByGame($params);//充值人数
$allData['spend_num'] = $spendRepository->getPayCountByGame($params);//充值次数
unset($params['pay_way']);
$allData['spend_all_amount'] = null_to_0($spendRepository->getPayAmountByGameAndType($params));//充值总额
$params['pay_way'] = ['in', '1,2,3,4,5,6'];
$allData['spend_cash'] = null_to_0($spendRepository->getPayAmountByGameAndType($params));//现金充值
$params['pay_way'] = 0;
$allData['spend_generic'] = null_to_0($spendRepository->getPayAmountByGameAndType($params));//通用币充值
$params['pay_way'] = -1;
$allData['spend_binding'] = null_to_0($spendRepository->getPayAmountByGameAndType($params));//绑定币充值
$allData['spend_discount'] = '0.00';
$allData['spend_voucher'] = '0.00';
$records[] = $allData;
}
}
@ -2797,7 +2827,7 @@ class DownloadController extends BaseController {
array('role_level','等级'),
array('recharge_cost','充值总额'),
array('recharge_count','充值次数'),
array('recharge_cost_today','日充值'),
array('recharge_cost_today','日充值'),
array('unlogin_day','未登录天数'),
array('play_time','最后登录时间'),
array('promote_account','推广员账号'),

@ -227,6 +227,8 @@ class HomeController extends Controller
$this->assign('apply', $apply);
$this->assign('game', $game);
$this->assign('promoteId', $promoteId);
$cur_url = base64_encode(base64_encode("http://" . $_SERVER['HTTP_HOST'] . __SELF__));
$this->assign('cur_url', $cur_url);
$this->display('landingPage');
}

@ -11,6 +11,14 @@
.btn-role-border {
border-left: 0;
}
.clipboard-btn {
width: 60px;
height: 28px;
border: 0;
border-radius: 3px;
color: #fff;
background-color: #3A97FF;
}
</style>
</block>
@ -260,13 +268,13 @@
<div class="game-window-content-eveyone" style="display: block;color: #3A97FF;font-size: 1.1rem;">
<label style="margin-right: 20px;">下载地址:</label>
<span id="game_link_address" style="word-wrap: break-word;white-space: normal;"></span>
<button id="clipboard-btn" style="display: none;" data-text="">复制</button>
</div>
</div>
<div class="game-window-content" style="text-align: center;width: auto;padding-top: 5px;">
<div class="game-window-content-eveyone" style="display: block;color: #999;font-size: 1.1rem;">
<span>复制成功,ctrl+v粘贴即可</span>
<span id="copy_msg">复制成功,ctrl+v粘贴即可</span>
<button class="clipboard-btn" id="clipboard-btn" style="display: none;" data-text="">复制</button>
</div>
</div>
@ -887,12 +895,22 @@
});
});
new ClipboardJS('#clipboard-btn', {
var clipboard = new ClipboardJS('#clipboard-btn', {
text: function(trigger) {
return trigger.getAttribute('data-text');
}
})
clipboard.on('success', function (e) {
$('#copy_msg').text('复制成功,ctrl+v粘贴即可');
$('#clipboard-btn').hide();
});
clipboard.on('error', function (e) {
$('#copy_msg').text('自动复制失败,请点击复制按钮');
$('#clipboard-btn').show();
});
$('#submit').click(function () {
var url = $(this).attr('url');
var query = $('.jssearch').find('input').serialize();

@ -4,19 +4,20 @@
<meta itemprop="name" content="{$game['relation_game_name']}"/>
<meta itemprop="image" content="{$game['icon']}"/>
<meta name="description" itemprop="description" content="{$game['features']}"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="{:get_cover(C('CH_SET_ICO'),'path')}" type="image/x-icon" rel="shortcut icon">
<script src="__JS__/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script type="text/javascript" src="__JS__/getRem.js"></script>
<script type="text/javascript" src="__JS__/swiper.min.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/swiper.min.css">
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
<link rel="stylesheet" type="text/css" href="__CSS__/index2.css">
<title>{$game['relation_game_name']}</title>
<link rel="stylesheet" href="__CSS__/20180207/promition.css">
<link rel="stylesheet" href="__CSS__/20180207/game.css">
<link href="__STATIC__/ios9/css/common.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="__CSS__/landing_page.css">
</head>
<body class="main_bg" style="background-color: #0a0a0a;height: auto;">
<body>
<input type="hidden" name="title" value="{$game['relation_game_name']}">
<input type="hidden" name="icon" value="{$game['icon']}">
<input type="hidden" name="desc" value="{$game['features']}">
@ -30,47 +31,326 @@
<?php endif;?>
<?php endif;?>
<div class="h_wrap">
<div id="data-2">
<volist name="game['flooring_page_imgs']" id="item">
<?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?>
<a href="#" class="no-package"><img src="{$item}" style="width: 100%;"/></a>
<?php else :?>
<a href="javascript:;" class="down-link" down-link="{$downloadUrl}"><img src="{$item}" style="width: 100%;"/></a>
<?php endif ;?>
</volist>
<div class="home">
<div class="home-box">
<div class="heard">
<img src="{$game['icon']}" alt="">
<div class="right">
<div>{$game['relation_game_name']}</div>
<div>{$game['features']}</div>
<div>
<?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?>
<div class="download">免费安装</div>
<?php else :?>
<div class="download">免费安装</div>
<?php endif ;?>
<img src="__IMG__/wenhao.png" class="doubt" alt="">
</div>
</div>
</div>
<div class="evaluate">
<div class="evaluate-box">
<div class="number">
<span>{$game['game_score']}</span>
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start.png" alt="">
</div>
</div>
<div class="grade">14.48K个评分</div>
</div>
<div class="evaluate-box">
<span>#{$game['recommend_level']}</span>
<div class="grade">网络游戏</div>
</div>
<div class="evaluate-box">
<span>16+</span>
<div class="grade">年龄</div>
</div>
</div>
<div class="slide_list">
<ul class="slide-box">
<volist name="game['flooring_page_imgs']" id="item">
<li class="slide-item">
<img src="{$item}" alt="">
</li>
</volist>
</ul>
</div>
<div class="synopsis">
<div>简介</div>
<div id="brief_introduction">{$game['features']}</div>
<div id="look_more">
<div class="bg-blur"></div>
<div class="more">查看更多</div>
</div>
</div>
<div class="appraisal">
<div class="title">评分及评论</div>
<div class="appraisal-box">
<div class="left">
<span>{$game['game_score']}</span>
<span>满分5分</span>
</div>
<div class="right">
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 2.77rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.24rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.06rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.04rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0;"></div>
</div>
</div>
<div class="mark">14.48K个评分</div>
</div>
</div>
</div>
<div class="device">
<div class="title">新功能</div>
<div class="soon-title">更新说明:</div>
<div class="del">1、优化用户体验</div>
</div>
<div class="information">
<div class="title">信息</div>
<div class="data-box">
<span>大小</span>
<div>{$game['game_size']}MB</div>
</div>
<div class="data-box">
<span>类别</span>
<div>游戏</div>
</div>
<div class="data-box">
<span>语言</span>
<div>英语,简体中文</div>
</div>
<div class="data-box">
<span>年龄分级</span>
<div>限16岁以上</div>
</div>
<div class="data-box">
<span>价格</span>
<div>免费</div>
</div>
<div class="privacy">隐私政策</div>
</div>
</div>
<div class="foot">
<div>
<div>闽ICP备19000000号-0</div>
<div>闽网文{2019}1554-099号</div>
</div>
<div>抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。</div>
<div>适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</div>
</div>
</div>
<script src="__STATIC__/layer/layer.js"></script>
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script type="text/javascript">
$('.down-link').on('click', function () {
if ($('.bn-rule').length > 0) {
$('.bn-rule').css('display','block')
$('.bn-rule').css('z-index','12')
return
}
if ($('input[name=isNewIos]').val() == 0 && $('input[name=isIOS13]').val() == 1) {
if (parseInt("{:I('get.status', 0)}") > 0) {
location.href = "{:U('iosDown',array('gid'=>$apply['game_id'],'pid'=>$apply['promote_id'],'status'=>1))}"
return
} else {
layer.confirm('请先到官网注册', {title: '提示'}, function () {
location.href = "/mobile.php?s=/User/login/pid/" + "{$apply.promote_id}" + "/gid/" + "{$apply.game_id}" + ".html"
})
return
<div class="window" style="display: none;">
<div class="containner">
<div class="containner-box">
<div class="text"> 购买至尊下载赠送限量至尊超级礼包价值100元</div>
<div class="text">• 至尊下载:永不闪退、不丢数据稳定有保障</div>
<div class="text"> • 同一设备安装一次可在一年内无限次下载重装</div>
<div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div>
<div class="gray-btn down-link" down-link="{$downloadUrl}">普通下载</div>
</div>
</div>
</div>
<div class="second" style="display: none;">
<div class="second-box">
<div class="title">升级IOS9后游戏打不开怎么办</div>
<div class="carousel">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>一、游戏安装完毕,点击游戏图标弹出如下提示:</div>
<div class="slide-img">
<img src="__IMG__/1.png" alt="" style=" height: 2.86rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>二、进入[设置] - [通用] - [描述文件]:找到对应证书名称</div>
<div class="slide-img">
<img src="__IMG__/2.png" alt="" style="height: 2.75rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>三、信任当前证书</div>
<div class="slide-img">
<img src="__IMG__/3.png" alt="" style="height: 2.06rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>四、下载过程中若出现以下情况,请检查网络和内存再次尝试下载</div>
<div class="slide-img">
<img src="__IMG__/4.png" alt="" style="height: 2.88rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>五、如果您已验证并正常体验游戏,一段时间后,点击游戏图标再次出现信任提示且无法信任时,请卸载游戏包,重新安装游戏验证</div>
</div>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
<div class="blue-btn">点我去信任</div>
</div>
</div>
<?php
?>
<input type="hidden" id="cur_url" name="cur_url" value="{$cur_url}">
</body>
</html>
<script>
$(function(){
$('.down-link').on('click', function () {
// if ($('.bn-rule').length > 0) {
// $('.bn-rule').css('display','block')
// $('.bn-rule').css('z-index','12')
// return
// }
if ($('input[name=isNewIos]').val() == 0 && $('input[name=isIOS13]').val() == 1) {
if (parseInt("{:I('get.status', 0)}") > 0) {
location.href = "{:U('iosDown',array('gid'=>$apply['game_id'],'pid'=>$apply['promote_id'],'status'=>1))}"
return
} else {
layer.confirm('请先到官网注册', {title: '提示'}, function () {
// location.href = '{:U("User/login",array("url"=>base64_encode(base64_encode(U("Game/detail",array("id"=>$_GET["id"], "pid" => $apply.promote_id, "gid" => $apply.game_id))))))}';
location.href = "/mobile.php?s=/User/login/pid/" + "{$apply.promote_id}" + "/gid/" + "{$apply.game_id}" + "/url/"+ cur_url + ".html"
});
return
}
}
var downLink = $(this).attr('down-link');
console.log(downLink);
location.href = downLink
});
$('.no-package').click(function() {
layer.msg('暂无下载', {
icon: 7,
time: 2000
})
});
if ($("#brief_introduction").length<80) {
$("#look_more").hide();
}
var downLink = $(this).attr('down-link')
location.href = downLink
});
$(".more").click(function(){
$("#look_more").hide();
$("#brief_introduction").css("overflow", "visible");
});
$('.no-package').click(function() {
layer.msg('暂无下载', {
icon: 7,
time: 2000
function swiperGet(){
var swiper = new Swiper('.swiper-container', {
loop: true,
observer: true,//修改swiper自己或子元素时自动初始化swiper
observeParents: true,//修改swiper的父元素时自动初始化swiper
// autoplayDisableOnInteraction:false,//
lazyLoading:true,//图片延迟加载
lazyLoadingInPrevNext:true,//前一个和后一个延迟加载
pagination: {
el: '.swiper-pagination',
clickable: true,
},
autoplay: {
delay: 2000,
stopOnLastSlide: false,
disableOnInteraction: false,
},
});
};
swiperGet();
$(".download").click(function(){
$(".window").show();
document.body.style.overflow = 'hidden';
});
$(".window").click(function(){
$(".window").hide();
document.body.style.overflow = 'auto';
});
$(".gray-btn").click(function(){
event.stopPropagation();
$(".second").show();
swiperGet();
document.body.style.overflow = 'hidden';
$(".window").hide();
})
})
$(".second").click(function(){
$(".second").hide();
document.body.style.overflow = 'auto';
})
$(".doubt").click(function(){
$(".second").show();
document.body.style.overflow = 'hidden';
swiperGet();
})
});
$.ajax({
url: "{:U('Home/generateWechatSign')}",
dataType: 'json',
@ -129,6 +409,6 @@
});
});
}
</script>
</body>
</html>

@ -361,7 +361,7 @@ class IndexController extends BaseController {
$model = array(
'm_name'=>'Game',
'prefix'=>'tab_',
'map' =>array('game_status'=>1,'recommend_status'=>1,'display_site'=>['like','%' . DISPLAY_SITE . '%']),
'map' =>array('game_status'=>1,'recommend_status'=>2,'display_site'=>['like','%' . DISPLAY_SITE . '%']),
'field' =>'*,min(id) as id',
'order' =>'sort desc,id desc',
'group' =>'relation_game_id',
@ -375,7 +375,7 @@ class IndexController extends BaseController {
S('index_reco',$reco);
}
}
$reco=game_merge($reco,$model['map']);
$reco = game_merge($reco,$model['map']);
$this->assign('recommend',$reco);

@ -203,16 +203,15 @@ class UserController extends BaseController
} else {
$pid = I('get.pid', 0);
$gid = I('get.gid', 0);
$from = I('get.from', "");
if ($pid > 0 || $gid > 0) {
cookie('pgInfo', json_encode(['pid' => $pid, 'gid' => $gid]), 3600 * 24);
}
if ($_REQUEST['url']) {
$this->assign('url', base64_decode(base64_decode($_REQUEST['url'])));
} else {
$this->assign('url', U('User/index'));
}
$this->display();
}
}
@ -1008,10 +1007,10 @@ class UserController extends BaseController
if (!$invidcard) {
$this->ajaxReturn(array('status' => -1, 'info' => '身份证号码填写不正确', 'url' => U('User/userauth')));
}
$cardd = M('User', 'tab_')->where(array('idcard' => $_POST['idcard']))->find();
if ($cardd) {
$this->ajaxReturn(array('status' => -1, 'info' => '身份证号码已被使用', 'url' => U('User/userauth')));
}
// $cardd = M('User', 'tab_')->where(array('idcard' => $_POST['idcard']))->find();
// if ($cardd) {
// $this->ajaxReturn(array('status' => -1, 'info' => '身份证号码已被使用', 'url' => U('User/userauth')));
// }
}
if (C('tool_age.status') == 0) {

@ -40,17 +40,41 @@
<div class="pop-wrap"></div>
</div>
</div>
<input type="hidden" id="from" name="from" value="{$from}">
<div class="popmsg pop-dialog" style="font-size: .28rem"></div>
<!-- 底部导航 -->
<div class="foot_tabbar">
<div class="foot_tabbar_box">
<div class="foot_info ">
<a href="{:U('Index/index')}" class="<if condition='CONTROLLER_NAME eq Index and ACTION_NAME eq index'>active</if>">
<img src="__IMG__/new/shouye<if condition='CONTROLLER_NAME eq Index and ACTION_NAME eq index'>1</if>.png" alt="">
<span>首页</span>
</a>
</div>
<div class="foot_info ">
<a href="{:U('Index/introduce')}" class="<if condition='ACTION_NAME eq introduce'>active</if>">
<img src="__IMG__/new/qiyechaxun<if condition='ACTION_NAME eq introduce'>1</if>.png" alt="">
<span>企业简介</span></a>
</div>
<div class="foot_info ">
<a href="{:U('Index/business')}" class="<if condition='ACTION_NAME eq business'>active</if>">
<img src="__IMG__/new/hezuo<if condition='ACTION_NAME eq business'>1</if>.png" alt="">
<span>招商合作</span>
</a>
</div>
<div class="foot_info ">
<a href="{:U('User/index')}" class="<if condition='CONTROLLER_NAME eq User'>active</if>">
<img src="__IMG__/new/geren<if condition='CONTROLLER_NAME eq User'>1</if>.png" alt="">
<span>我的</span>
</a>
</div>
</div>
</div>
</body>
<script src="__JS__/pop.lwx.min.js"></script>
<script src="__JS__/lwx.js"></script>
<script src="__JS__/common.js"></script>
<script>
$(document).ready(function(){
$('.foot_tabbar').hide()
});
$(document).keyup(function(event){
if(event.keyCode == 13){
$('.submit').click();

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>充值中心</title>
<script src="__JS__/jquery-1.11.3.min.js"></script>
@ -19,14 +19,14 @@
<a href="{:U('/User/index')}" class="arrows"></a>
</div>
<div class="recharge-tabbar">
<li class="selected" name="currency">平台币充值</li>
<li name="iscurrency">折扣充值</li>
<li class="selected" name="currency" style="margin-left:0;">平台币充值</li>
<!-- <li name="iscurrency">折扣充值</li> -->
</div>
</div>
<div class="content">
<div class="recharge-flat" >
<div class="recharge-flat" style="">
<form class="" id="form1" action="{:U('User/recharge')}" method="post">
<div class="flat-box">
<div class="flat-info">
@ -38,13 +38,13 @@
<div class="flat-box">
<div class="flat-info">
<div>充值金额</div>
<input type="text" class="rcmoney1" name="pay_amount" placeholder="请输入金额最低金额1元" style="text-align:right;width: 2.88rem">
<input type="text" class="rcmoney1" name="pay_amount" placeholder="请输入金额最低金额1元" style="text-align:right;width: 2.88rem" oninput="this.value=this.value.replace(/[^0-9]+|^0|\d{9}/,'');">
</div>
</div>
<div class="flat-box">
<div class="flat-info">
<div>获得平台币</div>
<input type="text" class="rcplatform" name="balance" readonly placeholder="" value="" style="text-align:right;">
<input type="text" class="rcplatform rcmoney1ptb" name="balance" readonly placeholder="" value="" style="text-align:right;">
</div>
</div>
<div class="recharge-payment">
@ -85,12 +85,12 @@
</div>
</form>
</div>
<div class="recharge-discount" style="display: none;">
<!-- <div class="recharge-discount" style="display: none;">
<form class="" id="form2" action="{:U('User/recharge')}" method="post">
<div class="flat-box">
<div class="flat-info">
<div>充值账户</div>
<input type="hidden" class="txt" name="account" value="{:session('suser_auth.account')}" readonly="readonly" placeholder="请输入充值账户">
<input type="hidden" class="txt" name="account" value="{:session('suser_auth.account')}" readonly="readonly" placeholder="请输入充值账户" >
<span>{:session('suser_auth.account')}</span>
</div>
</div>
@ -108,7 +108,7 @@
<div class="flat-box">
<div class="flat-info">
<div>充值金额</div>
<input type="text" class="txt rcmoney" id="pay_amount" name="pay_amount" placeholder="请输入金额最低金额1元" style="width:2.88rem;text-align:right;">
<input type="text" class="txt rcmoney" id="pay_amount" name="pay_amount" placeholder="请输入金额最低金额1元" style="width:2.88rem;text-align:right;" oninput="this.value=this.value.replace(/[^0-9]+|^0|\d{9}/,'');">
</div>
</div>
<div class="flat-box">
@ -122,7 +122,7 @@
<div class="flat-box">
<div class="flat-info">
<div>实付金额</div>
<input type="text" class="txt realmoney" name="realmoney" readonly style="text-align:right;">
<input type="text" class="txt rcmoney2bb realmoney" name="realmoney" readonly style="text-align:right;">
</div>
</div>
<div class="flat-box">
@ -133,7 +133,7 @@
</div>
<div class="recharge-payment">
<div class="title">请选择支付方式</div>
<div class="alipay">
<div class="alipay bindway">
<div class="alipay_img">
<img src="__IMG__/zhifubaozhifu.png" alt="">
<div class="img_text">
@ -143,12 +143,12 @@
</div>
<div class="radio_select">
<input id="zhifubao1" name="way" type="radio" value="1" checked>
<input id="zhifubao1" name="way1" type="radio" value="1" checked>
<label for="zhifubao1" class="radio-label"></label>
</div>
</div>
<div class="alipay" id="ch_weixin1">
<div class="alipay bindway" id="ch_weixin1">
<div class="alipay_img">
<img src="__IMG__/weixin.png" alt="">
<div class="img_text">
@ -157,7 +157,7 @@
</div>
</div>
<div class="radio_select">
<input id="weixin1" name="way" type="radio" value="2" >
<input id="weixin1" name="way1" type="radio" value="2" >
<label for="weixin1" class="radio-label"></label>
</div>
</div>
@ -169,7 +169,7 @@
</div>
</form>
</div>
</div>
</div> -->
@ -197,6 +197,14 @@
sib.find('.t-tabpan').eq(index).addClass('active').siblings().removeClass('active');
return false;
});
//点击父标签切换radio
$(".alipay").click(function(){
$(this).children(".radio_select").children("input").prop("checked", true);
})
//阻止事件冒泡
$(".radio_select").click(function(){
event.stopPropagation();
})
$('.jssbtn').click(function() {
var that = $(this);
if (that.hasClass('on')) {
@ -237,7 +245,7 @@
$('.rcmoney').keyup(function() {
var that = $(this),val = $.trim(that.val()),parent=that.closest('.recharge-discount'),pf=parent.find('.rcplatform');
var rm = parent.find('.realmoney');
if(val == ""){return true;}
if(val == ""){$(".rcmoney2bb").val(0);$(".rcplatform").val(0);return true;}
if (val) {
if (val>0 && /^(0|[1-9][0-9]*)$/.test(val)) {
pf.val(val);
@ -255,10 +263,10 @@
pf.val('');if(rm) {rm.val('');}
}
});
$('.rcmoney1').keyup(function() {
$('.rcmoney1').keyup(function() {
var that = $(this),val = $.trim(that.val()),parent=that.closest('.recharge-flat'),pf=parent.find('.rcplatform');
var rm = parent.find('.realmoney');
if(val == ""){return true;}
if(val == ""){$(".rcmoney1ptb").val(0);return true;}
if (val) {
if (val>0 && /^(0|[1-9][0-9]*)$/.test(val)) {
pf.val(val);
@ -360,7 +368,8 @@
popmsg.msg(result.info);
}
},
error:function(){
error:function(res){
console.log(res)
alert("服务端异常");
}
})

@ -138,34 +138,7 @@
</div>
</div>
</div>
<!-- 底部导航 -->
<div class="foot_tabbar">
<div class="foot_tabbar_box">
<div class="foot_info ">
<a href="{:U('Index/index')}" class="<if condition='CONTROLLER_NAME eq Index and ACTION_NAME eq index'>active</if>">
<img src="__IMG__/new/shouye<if condition='CONTROLLER_NAME eq Index and ACTION_NAME eq index'>1</if>.png" alt="">
<span>首页</span>
</a>
</div>
<div class="foot_info ">
<a href="{:U('Index/introduce')}" class="<if condition='ACTION_NAME eq introduce'>active</if>">
<img src="__IMG__/new/qiyechaxun<if condition='ACTION_NAME eq introduce'>1</if>.png" alt="">
<span>企业简介</span></a>
</div>
<div class="foot_info ">
<a href="{:U('Index/business')}" class="<if condition='ACTION_NAME eq business'>active</if>">
<img src="__IMG__/new/hezuo<if condition='ACTION_NAME eq business'>1</if>.png" alt="">
<span>招商合作</span>
</a>
</div>
<div class="foot_info ">
<a href="{:U('User/index')}" class="<if condition='CONTROLLER_NAME eq User'>active</if>">
<img src="__IMG__/new/geren<if condition='CONTROLLER_NAME eq User'>1</if>.png" alt="">
<span>我的</span>
</a>
</div>
</div>
</div>
<div class="popmsg pop-dialog" style="font-size: .28rem;"></div>

@ -137,28 +137,19 @@ $("#back_success").click(function() {
}catch(err){
} */
var Scheme=$('.Scheme').val();
var orderno=$('.orderno').val();
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
if(isAndroid){
window.mengchuang.getPayResult('succeed');
}else{
<if condition="get_wx_type() neq 1">
window.location.href = Scheme+"://1&back";
<else/>
window.location.href = "mengchuang://showWapPayResult_btnType_?1&back";
</if>
}
// var Scheme=$('.Scheme').val();
// var orderno=$('.orderno').val();
// var u = navigator.userAgent;
// var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
// if(isAndroid){
// window.mengchuang.getPayResult('succeed');
// }else{
window.location.href = '/mobile.php?s=/User/index.html';
// }
});
$("#back_error").click(function() {
window.location.href = '/mobile.php?s=/User/index.html';
/* var orderno=$('.orderno').val();
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
@ -171,22 +162,22 @@ $("#back_error").click(function() {
}catch(err){
} */
var Scheme=$('.Scheme').val();
var orderno=$('.orderno').val();
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
if(isAndroid){
window.mengchuang.getPayResult('fail');
}else{
<if condition="get_wx_type() neq 1">
if (!Scheme)
;
else
window.location.href = Scheme+"://0&back";
<else/>
window. location.href = "mengchuang://showWapPayResult_btnType_?0&back";
</if>
}
// var Scheme=$('.Scheme').val();
// var orderno=$('.orderno').val();
// var u = navigator.userAgent;
// var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
// if(isAndroid){
// window.mengchuang.getPayResult('fail');
// }else{
// <if condition="get_wx_type() neq 1">
// if (!Scheme)
// ;
// else
// window.location.href = Scheme+"://0&back";
// <else/>
// window. location.href = "mengchuang://showWapPayResult_btnType_?0&back";
// </if>
// }
});
</script>

@ -595,4 +595,17 @@ CHANGE COLUMN `create_promote_id` `creator_id` int(11) NOT NULL DEFAULT 0 COMMEN
ALTER TABLE `sys_shift_task`
ADD COLUMN `creator_type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '创建者类型 0 后台管理员 1 推广员' AFTER `creator_id`;
ALTER TABLE `tab_mend`
ADD COLUMN `op_type` tinyint(0) NOT NULL DEFAULT 0 COMMENT '0 管理员 1 推广员' AFTER `op_account`;
ADD COLUMN `op_type` tinyint(0) NOT NULL DEFAULT 0 COMMENT '0 管理员 1 推广员' AFTER `op_account`;
-- chenzhi
UPDATE `sys_model` SET `list_grid` = 'id:编号
user_account:
user_nickname:
promote_id:广
promote_account:广
promote_id_to:
promote_account_to:
remark:
create_time:
op_account:
order_time:' WHERE `id` = 29;

@ -37,7 +37,7 @@
height:0.6rem;
background:rgba(33,177,235,1);
border-radius:0.3rem;
font-size:0.15rem;
font-size:0.28rem;
font-family:PingFang SC;
font-weight:400;
color:rgba(255,255,255,1);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Loading…
Cancel
Save