Merge branch 'feature/ip_forbit' of wmtx/platform into master

隐藏美国IP
master
张谷诚 5 years ago committed by Gogs
commit d084a24394

@ -1817,7 +1817,7 @@ function all_pay_way_other($type=false)
$pay_way[1]=array('key'=>-1,'value'=>"绑币");
$pay_way[2]=array('key'=>1,'value'=>"支付宝");
$pay_way[3]=array('key'=>2,'value'=>"微信");
$pay_way[7]=array('key'=>7,'value'=>'金猪');
$pay_way[7]=array('key'=>7,'value'=>'苹果');
$pay_way[9]=array('key'=>9,'value'=>"双乾支付-支付宝");
$pay_way[10]=array('key'=>10,'value'=>"双乾支付-银联");
// $pay_way[3]=array('key'=>3,'value'=>'微信APP');

@ -63,7 +63,7 @@ class AmericaIpForbitController extends ThinkController
$xlsName = 'ip限制白名单';
$xlsCell = array(
"玩家账号", "区域", '状态', '添加人', '添加时间'
"玩家账号", '状态', '添加人', '添加时间'
);
$map = [];
@ -95,7 +95,7 @@ class AmericaIpForbitController extends ThinkController
for($i = 1; $i <= $pages; $i++) {
$xlsData = M('forbit_ip','tab_')
->field('user_account,area,status,admin_account,create_time')
->field('user_account,status,admin_account,create_time')
->where($map)
->limit(($i-1)*$perSize ,$perSize)
->order('create_time DESC')
@ -192,7 +192,7 @@ class AmericaIpForbitController extends ThinkController
$hav_firbit = M('forbit_ip','tab_')->where(['id'=>I('id')])->find();
addOperationLog(array(
"op_type"=>2,
"key"=> $hav_firbit['user_account'],
"key"=> I('id'),
"menu"=>"游戏-游戏管理-ip限制白名单-删除",
"url"=>U("AmericaIpForbit/index")
));
@ -230,7 +230,6 @@ class AmericaIpForbitController extends ThinkController
$insert['user_id'] = $hav_user['id'];
$insert['user_account'] = I('account');
$insert['area'] = I('area');
$insert['status'] = I('status');
$insert['admin_id'] = $auth['uid'];
$insert['admin_account'] = $auth['username'];

@ -35,24 +35,24 @@
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="0" name="status" checked="checked"> 限制
<input type="radio" value="0" name="status" checked="checked"> 通知不到账
</label >
<label >
<input type="radio" value="1" name="status" > 不限制
<input type="radio" value="1" name="status" > 通知到账
</label>
</span>
</td>
</tr>
<tr>
<td class="l">区域</td>
<td class="r">
<select name="area" id="area">
<option value="">请选择区域</option>
<option value="美国">美国</option>
</select>
</td>
</tr>
<!-- <tr>-->
<!-- <td class="l">区域</td>-->
<!-- <td class="r">-->
<!-- <select name="area" id="area">-->
<!-- <option value="">请选择区域</option>-->
<!-- <option value="美国">美国</option>-->
<!-- </select>-->
<!-- </td>-->
<!-- -->
<!-- </tr>-->
</tbody>
</table>

@ -193,8 +193,8 @@
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">ip限制白名单</h3>
<p class="description_text">说明:苹果内购白名单,名单中的用户支付成功可通知游戏</p>
<h3 class="page_title">苹果内购通知配置</h3>
<p class="description_text">说明:苹果内购白名单,名单中的用户支付成功可通知游戏 重点:默认全部账户使用苹果内购通知不到账</p>
<!-- <div class="demo">-->
<!-- <div class="wrap" ><span style="float: right;margin-top: 7px;margin-right: 120px">开</span>-->
<!-- <input type="checkbox" id="checkbox_c2" class="chk_3" <if condition="$apple_interior_buy eq 1">checked</if> /><label for="checkbox_c2" style="float: right;margin-right: 5px" onclick="setAppleInteriorBuyStatus({$set_apple_interior_buy})"></label>-->
@ -226,11 +226,11 @@
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="forbit"
style="width: 150px;background: #fff;color: #000;border:1px solid #000;">批量限制</a>
style="width: 150px;background: #fff;color: #000;border:1px solid #000;">批量通知不到账</a>
</div>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="noforbit"
style="width: 150px;background: #fff;color: #000;border:1px solid #000;">批量不限制</a>
style="width: 150px;background: #fff;color: #000;border:1px solid #000;">批量通知到账</a>
</div>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="delete"
@ -261,7 +261,7 @@
<th >玩家账号</th>
<th >区域</th>
<!-- <th >区域</th>-->
<th >状态</th>
@ -289,16 +289,16 @@
<tr>
<td ><input class="ids" type="checkbox" value="{$data.id}" name="ids[]"></td>
<td >{$data.user_account}</td>
<td>{$data.area}</td>
<td ><if condition="$data.status eq 1">不限制<else/>限制</if></td>
<!-- <td>{$data.area}</td>-->
<td ><if condition="$data.status eq 1">通知到账<else/>通知不到账</if></td>
<td >{$data.admin_account}</td>
<td >{$data.create_time}</td>
<td >
<a href="javascript:;" onclick="del({$data.id})">删除 </a>
<if condition="$data.status eq 1">
<a class="ajax-get" href="javascript:;" onclick="limit({$data.id},0)">限制 </a>
<a class="ajax-get" href="javascript:;" onclick="limit({$data.id},0)">通知不到账 </a>
<else />
<a href="javascript:;" id="lock" onclick="limit({$data.id},1)">不限制</a>
<a href="javascript:;" id="lock" onclick="limit({$data.id},1)">通知到账</a>
</if>
</td>
</tr>
@ -361,9 +361,9 @@
dataType: 'json',
success: function (data) {
if (data.code == 0) {
layer.msg("<em style='color:white'>" + '批量限制失败' + "</em>");
layer.msg("<em style='color:white'>" + '批量操作失败' + "</em>");
} else {
layer.msg("<em style='color:white'>" + '批量限制成功' + "</em>")
layer.msg("<em style='color:white'>" + '批量操作成功' + "</em>")
setTimeout(function(){
window.location.reload();
},1500);
@ -416,9 +416,9 @@
dataType: 'json',
success: function (data) {
if (data.code == 0) {
layer.msg("<em style='color:white'>" + '批量不限制失败' + "</em>");
layer.msg("<em style='color:white'>" + '批量操作失败' + "</em>");
} else {
layer.msg("<em style='color:white'>" + '批量不限制成功' + "</em>")
layer.msg("<em style='color:white'>" + '批量操作成功' + "</em>")
setTimeout(function(){
window.location.reload();
},1500);

Loading…
Cancel
Save