Skip to content

Commit

Permalink
调整serverid变更策略
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Mar 5, 2022
1 parent e275404 commit 63bd825
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion class/panelSSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,8 @@ def GetAuthToken(self,get):
if not result['status']: return result

if result['data']:
result['data']['serverid'] = data['serverid']
if result['data']['serverid'] != data['serverid']: # 保存新的serverid
public.writeFile('data/sid.pl',result['data']['serverid'])
public.writeFile(self.__UPATH,json.dumps(result['data']))
if os.path.exists('data/bind_path.pl'): os.remove('data/bind_path.pl')
public.flush_plugin_list()
Expand Down

0 comments on commit 63bd825

Please sign in to comment.