强子指定地区

This commit is contained in:
“wanyongkang”
2021-08-14 15:11:31 +08:00
parent 240df7e66e
commit 6e3db12d2b
3 changed files with 100 additions and 6 deletions

View File

@@ -81,8 +81,8 @@
account = getQueryVariable('account'),
pass = getQueryVariable('password');
if(product_id != 13&&product_id != 19&&product_id != 17) {
alert('目前仅支持极客、火狐产品!');
if(product_id != 13&&product_id != 19&&product_id != 17&&product_id != 1) {
alert('目前仅支持极客、火狐、西瓜、强子产品!');
window.location.href = "/User/MyAccounts";
}
@@ -166,6 +166,21 @@
}
});
}
if(product_id == 1){
$("#huohu").show();
$("#jike").hide();
$.ajax({
type: 'GET',
url: 'http://php-api.juip.com/product/AccountAddress/qiangzi_address?user='+account+'&password='+pass,
dataType: "json",
contentType: "application/json",
success: function (res) {
$("#huohu").html('<p style="font-size:30px;">服务器地址是混拨服务器,不选择任何地区,则为全国随机</p>');
$("#huohu").append(res);
}
});
}
},
checkLine(n) {
var that = this;
@@ -261,6 +276,38 @@
}
});
}
if(this.productId == 1){
let address_checked = [];
$("input[name='poolids[]']:checked").each(function(i){
address_checked.push($(this).val());
});
let data = {
list:address_checked,
account:this.assign_account,
password:this.assign_pass,
}
$.ajax({
type: 'POST',
url: 'http://php-api.juip.com/product/AccountAddress/qiangzi',
dataType: "json",
data:JSON.stringify(data),
contentType: "application/json",
success: function (res) {
if(res.code == 1){
alert('选择成功');
} else {
alert('选择失败');
}
//if (res.Code == 10000) {
// that.onLineData = res.Data;
// for (var i = 0; i < that.onLineData.length; i++) {
// that.onLineData[i].ProductId = productId;
// }
//}
}
});
}
if(product_id == 19){
let address_checked = [];
$("input[name='citys[]']:checked").each(function(i){