diff --git a/client/client.py b/client/client.py index 371a0069..7203ef90 100644 --- a/client/client.py +++ b/client/client.py @@ -49,11 +49,17 @@ autologin = 1 # BASE_URL is variant use to save the format of host and port -BASE_URL = 'http://' + HOST + ':'+ PORT + '/' +if PORT == '80': + BASE_URL = 'http://' + HOST + '/' +else: + BASE_URL = 'http://' + HOST + ':'+ PORT + '/' def __reflash_url__(): global BASE_URL - BASE_URL = 'http://' + HOST + ':'+ PORT + '/' + if PORT == '80': + BASE_URL = 'http://' + HOST + '/' + else: + BASE_URL = 'http://' + HOST + ':'+ PORT + '/' def __read_auto_inf__(): @@ -138,7 +144,7 @@ def on_pBtn_login_clicked(self): """ global HOST,PORT # check whether the length of input host and port is allowable - if 7 - 15 + 50 Qt::AlignCenter