Skip to content

Commit

Permalink
修复宝塔帐号绑定失效后,获取云端SSL列表时没有提示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Jun 19, 2019
1 parent 0a69822 commit d43d130
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions BTPanel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
from werkzeug.wrappers import Response
from flask_socketio import SocketIO,emit,send

from flask_basicauth import BasicAuth
app.config['BASIC_AUTH_USERNAME'] = 'admin'
app.config['BASIC_AUTH_PASSWORD'] = 'amwyygyyv'
app.config['BASIC_AUTH_FORCE'] = True
basic_auth = BasicAuth(app)
#from flask_basicauth import BasicAuth
#app.config['BASIC_AUTH_USERNAME'] = 'admin'
#app.config['BASIC_AUTH_PASSWORD'] = '11111'
#app.config['BASIC_AUTH_FORCE'] = True
#basic_auth = BasicAuth(app)


cache = SimpleCache()
Expand Down
4 changes: 4 additions & 0 deletions BTPanel/static/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,10 @@ var site = {
var loading = bt.load()
bt.site.get_order_list(web.name, function (odata) {
loading.close();
if (odata.status === false) {
layer.msg(odata.msg, { icon: 2 });
return;
}
robj.append("<div class=\"divtable mtb15 table-fixed-box\" style=\"max-height:200px;overflow-y: auto;\"><table id='bt_order_list' class='table table-hover'></table></div>");
bt.render({
table: '#bt_order_list',
Expand Down

0 comments on commit d43d130

Please sign in to comment.