diff --git a/control.html b/control.html
index 676f86e..9f7e6a7 100644
--- a/control.html
+++ b/control.html
@@ -162,7 +162,7 @@
var delection = $("input[name='analog']:checked").val();
var lock = $("input[name='lock']:checked").val();
- let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=control_set';
+ let url = 'http://192.168.0.116/cgi-bin/test.cgi';
let postData = {
action:"control_set",
power: power,
@@ -180,6 +180,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
data = res.content
}
@@ -211,6 +212,7 @@
type: "GET",
url: url,
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if(res.success){
data = res.content
bindData()
diff --git a/ducking.html b/ducking.html
index 0fde12b..02da30d 100644
--- a/ducking.html
+++ b/ducking.html
@@ -374,13 +374,11 @@
$("input[name='switch']").on('change', function () {
let $value = $("input[name='switch']:checked").val()
- // console.log($("input[name='switch']:checked").val())
- // alert($value)
- let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=ducker_set';
+ let url = 'http://192.168.0.116/cgi-bin/test.cgi';
let postData = {
state: $value,
- action:"ducker_set",
+ action: "ducker_set",
}
$.ajax({
@@ -390,6 +388,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
data = res.content
}
@@ -420,10 +419,11 @@
function micChange(mic1, mic2) {
- let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=ducker_set';
+ let url = 'http://192.168.0.116/cgi-bin/test.cgi';
let postData = {
mic1: mic1 ? "open" : "close",
mic2: mic2 ? "open" : "close",
+ action: "ducker_set",
}
$.ajax({
@@ -433,6 +433,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
data = res.content
}
@@ -490,7 +491,7 @@
thresholdSlider(data.parameters.threshold);
ducklevelSlider(data.parameters.ducklevel);
releaseSlider(data.parameters.release);
-
+
}
function attackSlider(number) {
@@ -602,7 +603,7 @@
}
function releaseSlider(number) {
- console.log(number,releaseValue)
+ console.log(number, releaseValue)
let element = $('#release')
let input = $("#release .volume-slider input")
input.attr('value', (parseInt(number) - 10) / (1990 / 100))
@@ -633,7 +634,7 @@
let number = ((input.val() * (1990 / 100)) + 10).toFixed(1)
$value.val(`${number}`);
//调用接口提交数据
- console.log(number,releaseValue)
+ console.log(number, releaseValue)
if (number != releaseValue && isInput == false) {
changeInputValue('release', number)
}
@@ -641,8 +642,9 @@
function changeInputValue(module, number) {
- let url = "/cgi-bin/test.cgi&action=ducker_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = {
+ action: 'ducker_set',
subaction: module,
audio: number,
type: module
diff --git a/eq.html b/eq.html
index a98304d..68e29aa 100644
--- a/eq.html
+++ b/eq.html
@@ -759,7 +759,7 @@
})
function loadData() {
- let url = ""
+ let url = "http://192.168.0.116/cgi-bin/test.cgi?action=eq_get"
$.ajax({
type: "GET",
url: url,
@@ -1198,8 +1198,9 @@
}
function changeInputValue(module, number) {
- let url = "http://192.168.0.116/cgi-bin/test.cgi?action=eq_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = {
+ action: "eq_set",
subaction: module,
value: number,
module: module
@@ -1211,6 +1212,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
if (module == 'mic2state' || module == 'mic210k' || module == 'mic22k' || module == 'mic2500' || module == 'mic2150' || module == 'mic240') {
data.mic2 = res.content.mic2
diff --git a/filter.html b/filter.html
index c6fdc20..91e8495 100644
--- a/filter.html
+++ b/filter.html
@@ -344,8 +344,10 @@
url: url,
success: function (res) {
let resData = res
+ console.log('获取成功', typeof (resData), resData,)
if (resData.success) {
data = resData.content
+
bindData()
}
else {
diff --git a/fs.html b/fs.html
index 8f7f5f2..5176bfa 100644
--- a/fs.html
+++ b/fs.html
@@ -162,8 +162,9 @@
$("input[name='mic1switch']").on('change', function () {
let $value = $("input[name='mic1switch']:checked").val()
//alert($value)
- let url = "http://192.168.0.116/cgi-bin/test.cgi?action=fs_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = {
+ action:'fs_set',
subaction: 'mic1',
state: $value,
module: 'mic1'
@@ -175,6 +176,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
data.mic1 = res.content.mic1
bindData()
@@ -192,8 +194,9 @@
$("input[name='mic2switch']").on('change', function () {
let $value = $("input[name='mic2switch']:checked").val()
// alert($value)
- let url = "http://192.168.0.116/cgi-bin/test.cgi?action=fs_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = {
+ action:'fs_set',
subaction: 'mic2',
state: $value,
module: 'mic2'
@@ -205,6 +208,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
data.mic2 = res.content.mic2
bindData()
@@ -220,8 +224,9 @@
})
function changeInputValue(module, number) {
- let url = "http://192.168.0.116/cgi-bin/test.cgi?action=fs_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = {
+ action:'fs_set',
subaction: module,
audio: number,
module: module
@@ -233,6 +238,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
if (module == 'mic1') {
data.mic1 = res.content.mic1
@@ -257,6 +263,7 @@
type: "GET",
url: url,
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
data = res.content
bindData()
diff --git a/home.html b/home.html
index f996d5f..f1c21d3 100644
--- a/home.html
+++ b/home.html
@@ -970,8 +970,9 @@
$(document).ready(function () {
$("#lineinput input[name='lineinput']").on('click', function () {
- let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = {
+ action:'home_set',
subaction: 'lineinput',
signal: $("input[name='lineinput']:checked").val(),
module: 'lineinput'
@@ -983,6 +984,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
let resData = JSON.parse(res)
if (resData.success) {
data.lineinput = resData.content.lineinput
@@ -1010,9 +1012,10 @@
})
$("input[name='lineinput-voice-close']").on('change', function () {
- let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let state = $("input[name='lineinput-voice-close']:checked").val() == 'on'
let postData = {
+ action:'home_set',
subaction: 'lineinput',
state: state ? "close" : "open",
module: 'lineinput'
@@ -1024,6 +1027,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
let resData = JSON.parse(res)
if (resData.success) {
data.lineinput = resData.content.lineinput
@@ -1053,9 +1057,10 @@
})
$("input[name='microphone1-voice-close']").on('change', function () {
- let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let state = $("input[name='microphone1-voice-close']:checked").val() == 'on'
let postData = {
+ action:'home_set',
subaction: 'mic1',
state: state ? "close" : "open",
module: 'mic1'
@@ -1067,6 +1072,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
let resData = JSON.parse(res)
if (resData.success) {
data.mic1 = resData.content.mic1
@@ -1097,9 +1103,10 @@
})
$("input[name='microphone2-voice-close']").on('change', function () {
- let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let state = $("input[name='microphone2-voice-close']:checked").val() == 'on'
let postData = {
+ action:'home_set',
subaction: 'mic2',
state: state ? "close" : "open",
module: 'mic2'
@@ -1111,6 +1118,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
let resData = JSON.parse(res)
if (resData.success) {
data.mic2 = resData.content.mic2
@@ -1139,9 +1147,10 @@
})
$("input[name='outputvolume-voice-close']").on('change', function () {
- let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let state = $("input[name='outputvolume-voice-close']:checked").val() == 'on'
let postData = {
+ action:'home_set',
subaction: 'output',
state: state ? "close" : "open",
module: 'output'
@@ -1153,6 +1162,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
let resData = JSON.parse(res)
if (resData.success) {
data.output = resData.content.output
@@ -1172,8 +1182,9 @@
function changeInputValue(module, number) {
- let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
+ let url = "http://192.168.0.116/cgi-bin/test.cgi"
let postData = {
+ action:'home_set',
subaction: module,
audio: number,
module: module
@@ -1185,6 +1196,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
let resData = JSON.parse(res)
if (resData.success) {
if (module == 'lineinput') {
diff --git a/network.html b/network.html
index 9ab19be..a401555 100644
--- a/network.html
+++ b/network.html
@@ -143,7 +143,7 @@
return
}
- let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=network_set';
+ let url = 'http://192.168.0.116/cgi-bin/test.cgi';
let postData = {
config: $("input[name=type]:checked").val(),
mac: '',
@@ -197,6 +197,7 @@
type: "GET",
url: url,
success: function (res) {
+ console.log('返回数据', typeof (res), res)
data = res.content
bindData()
},
diff --git a/security.html b/security.html
index d8bea46..257e516 100644
--- a/security.html
+++ b/security.html
@@ -129,7 +129,7 @@
alert('Confirm that the password is inconsistent with the new password')
return
}
- let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=security_set';
+ let url = 'http://192.168.0.116/cgi-bin/test.cgi';
let postData = {
oldname: oldname,
newname: newname,
@@ -146,6 +146,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
alert('success')
}
diff --git a/system.html b/system.html
index f658b99..33e033e 100644
--- a/system.html
+++ b/system.html
@@ -125,8 +125,9 @@
$(document).ready(function () {
$('#reset').on('click', function (event) {
- let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=reset';
+ let url = 'http://192.168.0.116/cgi-bin/test.cgi';
let postData = {
+ action:'system_reset'
}
$.ajax({
@@ -136,6 +137,7 @@
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (res) {
+ console.log('返回数据', typeof (res), res)
if (res.success) {
data = res.content
alert('reseting')