diff --git a/plugins/mtproxy/index.html b/plugins/mtproxy/index.html index 030b3f3c1..f4a0d936f 100755 --- a/plugins/mtproxy/index.html +++ b/plugins/mtproxy/index.html @@ -3,6 +3,7 @@
diff --git a/plugins/mtproxy/js/mtproxy.js b/plugins/mtproxy/js/mtproxy.js index e69de29bb..36e8ef1e2 100644 --- a/plugins/mtproxy/js/mtproxy.js +++ b/plugins/mtproxy/js/mtproxy.js @@ -0,0 +1,35 @@ +function mtPost(method, version, args,callback){ + var loadT = layer.msg('正在获取...', { icon: 16, time: 0, shade: 0.3 }); + + var req_data = {}; + req_data['name'] = 'mtproxy'; + req_data['func'] = method; + req_data['version'] = version; + + if (typeof(args) == 'string'){ + req_data['args'] = JSON.stringify(toArrayObject(args)); + } else { + req_data['args'] = JSON.stringify(args); + } + + $.post('/plugins/run', req_data, function(data) { + layer.close(loadT); + if (!data.status){ + //错误展示10S + layer.msg(data.msg,{icon:0,time:2000,shade: [10, '#000']}); + return; + } + + if(typeof(callback) == 'function'){ + callback(data); + } + },'json'); +} + +function mtCommonFunc(){ + var con = '\ + \ +
'; + + $(".soft-man-con").html(con); +} \ No newline at end of file