This commit is contained in:
parent
e341272547
commit
60fd8d306b
|
|
@ -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>\
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue