backup: 线上最终版本全量备份
包含所有线上运行的改动: - 代理编辑功能修复(码率/占成/返水率保存) - CORS跨域修复(Pcapi构造函数统一Origin) - 支付通道(ccpay/epay新增) - 代理报表洗码量显示 - AlinPay金额调整 - 代理/会员编辑页面优化 - 多语言更新
This commit is contained in:
@@ -269,7 +269,12 @@
|
||||
dataType: 'JSON',
|
||||
success: function (data) {
|
||||
if (data.code == 0) {
|
||||
layer.msg(data.msg);
|
||||
// 校验未通过:用必须点确认的弹窗代替一闪而过的 toast,确保操作员看清失败原因
|
||||
// (如返水率/码率/占股超过上级上限时,后端会返回具体上限值)
|
||||
layer.alert(data.msg, {
|
||||
title: lang.message,
|
||||
icon: 0
|
||||
});
|
||||
} else if (data.code == 1) {
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
@@ -277,6 +282,36 @@
|
||||
x_admin_close();
|
||||
parent.location.reload();
|
||||
});
|
||||
} else if (data.code == 2) {
|
||||
// 时序风险:下级有未结算注单,二次确认后带 confirm_pending 重新提交
|
||||
layer.confirm(data.msg, {
|
||||
title: lang.message,
|
||||
btn: ['确定保存', '取消']
|
||||
}, function (idx) {
|
||||
layer.close(idx);
|
||||
query.confirm_pending = 1;
|
||||
$.ajax({
|
||||
url: '/agent/do_edit',
|
||||
data: query,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
success: function (d) {
|
||||
if (d.code == 0) {
|
||||
layer.alert(d.msg, {
|
||||
title: lang.message,
|
||||
icon: 0
|
||||
});
|
||||
} else if (d.code == 1) {
|
||||
layer.alert(d.msg, {
|
||||
title: lang.message
|
||||
}, function () {
|
||||
x_admin_close();
|
||||
parent.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -644,13 +644,11 @@
|
||||
//query.mobile = $('#mobile').val();
|
||||
//query.bet_type = $('#bet_type').val();
|
||||
query.win_limit = $('#win_limit').val();
|
||||
/*
|
||||
query.agent_commission = $('#agent_commission').val();
|
||||
query.agent_commission_dt = $('#agent_commission_dt').val();
|
||||
query.agent_commission_nn = $('#agent_commission_nn').val();
|
||||
query.agent_commission_tc = $('#agent_commission_tc').val();
|
||||
query.agent_commission_tc_banker = $('#agent_commission_tc_banker').val();
|
||||
*/
|
||||
query.limit_low = $('#limit_low').val();
|
||||
query.limit_high = $('#limit_high').val();
|
||||
query.limit_low_tie = $('#limit_low_tie').val();
|
||||
|
||||
@@ -77,7 +77,10 @@
|
||||
<div class="gap">
|
||||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||||
<button class="layui-btn search-btn countDown">5</button>
|
||||
<label style="margin-left:6px;line-height:38px;cursor:pointer;font-weight:normal;vertical-align:middle;">
|
||||
<input type="checkbox" id="autoRefresh" style="vertical-align:middle;"> 自动刷新
|
||||
</label>
|
||||
<button type="button" class="layui-btn search-btn countDown" style="display:none;">10</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -187,16 +190,44 @@
|
||||
$(function(){
|
||||
var online = $('#online').val();
|
||||
var refreshUrl = $('#refreshUrl').val();
|
||||
var countDown = 10;
|
||||
if(online == 1){
|
||||
$('.countDown').show();
|
||||
setInterval(function(){
|
||||
var INTERVAL = 10; // 自动刷新间隔(秒)
|
||||
var countDown = INTERVAL;
|
||||
var autoTimer = null;
|
||||
|
||||
function startAuto(reloadFn){
|
||||
countDown = INTERVAL;
|
||||
$('.countDown').show().html(countDown);
|
||||
autoTimer = setInterval(function(){
|
||||
countDown = countDown - 1;
|
||||
$('.countDown').html(countDown);
|
||||
if(countDown == 0){
|
||||
location.href = refreshUrl;
|
||||
if(countDown <= 0){
|
||||
reloadFn();
|
||||
}
|
||||
},1000);
|
||||
}, 1000);
|
||||
}
|
||||
function stopAuto(){
|
||||
if(autoTimer){ clearInterval(autoTimer); autoTimer = null; }
|
||||
$('.countDown').hide();
|
||||
}
|
||||
|
||||
if(online == 1){
|
||||
// 从“在线管理”进入:保持原有自动刷新行为
|
||||
startAuto(function(){ location.href = refreshUrl; });
|
||||
}else{
|
||||
// 注单查询:可开关的今日实时自动刷新(默认开,刷新当前查询条件)
|
||||
var saved = localStorage.getItem('bet_auto_refresh');
|
||||
var enabled = (saved === null) ? true : (saved === '1');
|
||||
$('#autoRefresh').prop('checked', enabled);
|
||||
if(enabled){ startAuto(function(){ location.replace(location.href); }); }
|
||||
$('#autoRefresh').on('change', function(){
|
||||
if($(this).is(':checked')){
|
||||
localStorage.setItem('bet_auto_refresh','1');
|
||||
startAuto(function(){ location.replace(location.href); });
|
||||
}else{
|
||||
localStorage.setItem('bet_auto_refresh','0');
|
||||
stopAuto();
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user