mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
update
This commit is contained in:
@@ -191,3 +191,4 @@ plugins/goedge-node
|
||||
plugins/goedge-happy
|
||||
plugins/dztasks
|
||||
|
||||
/logs
|
||||
|
||||
+2
-2
@@ -612,9 +612,9 @@ class sites(object):
|
||||
# 获取模版名内容
|
||||
def getRewriteTpl(self, name):
|
||||
path = self.getNgxRewriteDir() +'/'+ name + ".conf"
|
||||
if not os.path.exists(file):
|
||||
if not os.path.exists(path):
|
||||
return mw.returnData(False, '模版不存在!')
|
||||
return mw.returnData(True, 'OK', file)
|
||||
return mw.returnData(True, 'OK', path)
|
||||
|
||||
def setRewriteTpl(self,name,data):
|
||||
path = self.getNgxRewriteDir() +'/'+ name + ".conf"
|
||||
|
||||
Reference in New Issue
Block a user