This commit is contained in:
Mr Chen 2019-02-19 13:17:26 +08:00
parent e341272547
commit 60fd8d306b
2 changed files with 2 additions and 4 deletions

View File

@ -37,8 +37,8 @@ function web_shell2() {
var term_box = layer.open({
type: 1,
title: "宝塔终端",
area: ['480px','360px'],
title: "本地终端",
area: ['500px','400px'],
closeBtn: 2,
shadeClose: false,
content: '<div class="term-box"><div id="term"></div></div>\

View File

@ -281,11 +281,9 @@ def webssh(msg):
@socketio.on('connect_event')
def connected_msg(msg):
if not isLogined():
print 'not login'
emit(pdata.s_response, {'data': '会话丢失,请重新登陆面板!\r\n'})
return None
global shell, ssh
print 'connect_event:connected_msg', msg
try:
recv = shell.recv(8192)
print recv.decode("utf-8")