yxw 2023-11-21 18:31:18 +08:00
parent 72a098fdee
commit 95bf3b5af8
1 changed files with 12 additions and 8 deletions

View File

@ -195,6 +195,7 @@
dataType: "json", dataType: "json",
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
success: function (res) { success: function (res) {
let res = $.parseJSON(res)
if (res.success) { if (res.success) {
data.mic1 = res.content.mic1 data.mic1 = res.content.mic1
bindData() bindData()
@ -226,6 +227,7 @@
dataType: "json", dataType: "json",
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
success: function (res) { success: function (res) {
let res = $.parseJSON(res)
if (res.success) { if (res.success) {
data.mic2 = res.content.mic2 data.mic2 = res.content.mic2
bindData() bindData()
@ -255,6 +257,7 @@
dataType: "json", dataType: "json",
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
success: function (res) { success: function (res) {
let res = $.parseJSON(res)
if (res.success) { if (res.success) {
data.mic1 = res.content.mic1 data.mic1 = res.content.mic1
bindData() bindData()
@ -284,6 +287,7 @@
dataType: "json", dataType: "json",
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
success: function (res) { success: function (res) {
let res = $.parseJSON(res)
if (res.success) { if (res.success) {
data.mic2 = res.content.mic2 data.mic2 = res.content.mic2
bindData() bindData()
@ -314,6 +318,7 @@
dataType: "json", dataType: "json",
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
success: function (res) { success: function (res) {
let res = $.parseJSON(res)
if (res.success) { if (res.success) {
if (module == 'mic1') { if (module == 'mic1') {
data.mic1 = res.content.mic1 data.mic1 = res.content.mic1
@ -338,8 +343,7 @@
type: "GET", type: "GET",
url: url, url: url,
success: function (res) { success: function (res) {
console.log(typeof(res)) let res = $.parseJSON(res)
console.log(res.success)
if (res.success) { if (res.success) {
data = res.content data = res.content
bindData() bindData()