dever 2 years ago
parent
commit
8fdc5fdaca
1 changed files with 9 additions and 2 deletions
  1. 9 2
      assets/lib/manage/main.js

+ 9 - 2
assets/lib/manage/main.js

@@ -3610,7 +3610,7 @@ function init_xm(xm_id, xm_radio, xm_tips, xm_url, xm_data, xm_value, xm_on)
 	                }
 	            }
 	        }
-	        $.getJSON(xm_url, data, function(response) {
+	        var success = function(response) {
 	        	console.info(1);
 	        	if (typeof response == "string") {
                     response = JSON.parse(response);
@@ -3657,7 +3657,14 @@ function init_xm(xm_id, xm_radio, xm_tips, xm_url, xm_data, xm_value, xm_on)
 						xm_on && xm_on(send)
 					})
                 }
-	        });
+	        };
+	        $.ajax({
+			    dataType: "json",
+			    url: xm_url,
+			    data: data,
+			    timeout:0,
+			    success: success
+			});
 	    },
 	});
 }