512 lines
14 KiB
PHP
Raw Normal View History

// +----------------------------------------------------------------------
// | 作者:修缘 联系QQ278896498 QQ群1054861244
// | 声明:未经作者许可,禁止倒卖等商业运营,违者必究
// | 另接php业务网站制作、代理后台、gm后台、支付对接等
// +----------------------------------------------------------------------
// | 创建时间: 2022/1/5 14:37
// +----------------------------------------------------------------------
$("#create_robot").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'create_robot',
password: $('#password').val(),
server_id: $('#server_id').val(),
robot_num: $('#robot_num').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#clear_robot").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'clear_robot',
password: $('#password').val(),
server_id: $('#server_id').val(),
robot_num: $('#robot_num').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#close_gold").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'close_gold',
password: $('#password').val(),
server_id: $('#server_id').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#open_gold").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'open_gold',
password: $('#password').val(),
server_id: $('#server_id').val(),
quota: $('#quota').val(),
maxQuota: $('#maxQuota').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#set_comment").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'set_comment',
password: $('#password').val(),
server_id: $('#server_id').val(),
notice_content: $('#notice_content').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#can_speek").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'can_speek',
password: $('#password').val(),
server_id: $('#server_id').val(),
role_id: $('#role_id').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#send_title").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'add_title',
password: $('#password').val(),
role_id: $('#role_id').val(),
title_id : $('#title_id').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#not_speek").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'not_speek',
password: $('#password').val(),
server_id: $('#server_id').val(),
role_id: $('#role_id').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#role_mail").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'role_mail',
password: $('#password').val(),
role_id: $('#role_id').val(),
mail_title: $('#mail_title').val(),
mail_content: $('#mail_content').val(),
gets: $('#gets').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#server_mail").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'server_mail',
password: $('#password').val(),
server_id: $('#server_id').val(),
mail_title: $('#mail_title').val(),
mail_content: $('#mail_content').val(),
gets: $('#gets').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#frozen_mac").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'frozen_mac',
password: $('#password').val(),
account: $('#account').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#unfrozen_mac").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'unfrozen_mac',
password: $('#password').val(),
account: $('#account').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#frozen_ip").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'frozen_ip',
password: $('#password').val(),
ip_address: $('#ip_address').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#unfrozen_ip").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'unfrozen_ip',
password: $('#password').val(),
ip_address: $('#ip_address').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#add_jade").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'add_jade',
password: $('#password').val(),
role_id: $('#role_id').val(),
jade_num: $('#num').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#add_exp").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'add_exp',
password: $('#password').val(),
role_id: $('#role_id').val(),
exp_num: $('#num').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#add_item").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'add_item',
password: $('#password').val(),
role_id: $('#role_id').val(),
item_id: $('#item_id').val(),
item_num: $('#num').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
$("#inform").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'inform',
password: $('#password').val(),
server_id: $('#server_id').val(),
inform_type: $('#inform_type').val(),
inform_content: $('#inform_content').val(),
times: $('#times').val(),
interval: $('#interval').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});
2025-05-08 11:27:49 +08:00
$("#set_close").on("click", function () {
// 通过则发起ajax请求提交表单
$.post({
url: GM_URL,
data: {
type: 'closeserver',
times: $('#closetime').val(),
},
cache: false,
dataType: 'json',
success: function (result) {
if (result.code == 1) {
layer.msg(result.msg, {icon: 6});
} else {
layer.msg(result.msg, {icon: 5});
}
},
error: function () {
layer.msg('连接失败...请重试', {icon: 5});
}
});
return false;
});