diff --git a/class/core/crontab_api.py b/class/core/crontab_api.py index ef6e461ad..07d3b27f3 100755 --- a/class/core/crontab_api.py +++ b/class/core/crontab_api.py @@ -17,8 +17,10 @@ class crontab_api: def __init__(self): pass + ##### ----- start ----- ### def listApi(self): return '123' - ##### ----- start ----- ### + def addApi(self): + return 'ok' ##### ----- start ----- ### diff --git a/route/__init__.py b/route/__init__.py index be908067e..15e35ef0c 100755 --- a/route/__init__.py +++ b/route/__init__.py @@ -53,6 +53,12 @@ app.config['SESSION_COOKIE_NAME'] = "MW_VER_1" Session(app) +# debug macosx dev +if public.isAppleSystem(): + app.debug = True + app.config.version = app.config.version + str(time.time()) + + import common common.init() diff --git a/route/templates/default/crontab.html b/route/templates/default/crontab.html index eb4d3a15b..806d9aeaa 100755 --- a/route/templates/default/crontab.html +++ b/route/templates/default/crontab.html @@ -116,7 +116,7 @@
  • 磁盘容量不够、数据库密码错误、网络不稳定等原因,可能导致数据备份不完整
  • -