Update tamper_proof_service.py

pull/712/head
Mr Chen 3 months ago
parent 3688cf6145
commit 5be2d5eb22
  1. 4
      plugins/tamper_proof_py/tamper_proof_service.py

@ -422,7 +422,7 @@ class MyEventHandler(pyinotify.ProcessEvent):
os.system('chattr -R -a {} &> /dev/null'.format(path))
self.set_user_ini(path)
def close(self, reload=False):
def close(self, close_reload=False):
# 解除锁定
sites = self.get_sites()
print("")
@ -433,7 +433,7 @@ class MyEventHandler(pyinotify.ProcessEvent):
tip = self._PLUGIN_PATH + '/tips/' + siteInfo['siteName'] + '.pl'
if not siteInfo['open'] and not os.path.exists(tip):
continue
if reload and siteInfo['open']:
if close_reload and siteInfo['open']:
continue
if sys.version_info[0] == 2:
print(

Loading…
Cancel
Save