mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
update
This commit is contained in:
@@ -290,6 +290,9 @@ def getBlackList():
|
||||
content = "\n".join(conf)
|
||||
return mw.returnJson(True, 'ok', content)
|
||||
|
||||
def setBlackIp():
|
||||
return ''
|
||||
|
||||
if __name__ == "__main__":
|
||||
func = sys.argv[1]
|
||||
if func == 'status':
|
||||
@@ -320,5 +323,7 @@ if __name__ == "__main__":
|
||||
print(readConfigTpl())
|
||||
elif func == 'get_black_list':
|
||||
print(getBlackList())
|
||||
elif func == 'set_black_ip':
|
||||
print(setBlackIp())
|
||||
else:
|
||||
print('error')
|
||||
|
||||
@@ -83,7 +83,8 @@ function f2bBanIp(){
|
||||
editor.focus();
|
||||
|
||||
f2bPost('get_black_list', '', {}, function(data){
|
||||
console.log(data);
|
||||
var rdata = $.parseJSON(data.data);
|
||||
$("#textBody").text(rdata.data);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user