diff --git a/confs/configs/gateway.ini b/confs/configs/gateway.ini index 8b79a5b..18b972e 100644 --- a/confs/configs/gateway.ini +++ b/confs/configs/gateway.ini @@ -23,7 +23,7 @@ max_refresh = 10 # 管理员账号白名单(分号分隔)。登录时命中即在 Token payload 写入 is_admin=true, # 下游服务(dnfs 等)凭该字段豁免所有权校验,无需各自维护名单。 # 修改后需重启 gateway 生效;旧 Token 无此字段,按非管理员处理。 -users = qing@qsont.me;shufeng@qsont.me +users = 1776177662@qq.com;277665039@qq.com; [CORS] # 允许跨域的 Origin 白名单(分号分隔) diff --git a/db/fix_orphan_notes.py b/db/fix_orphan_notes.py index 302b3d0..675bb51 100644 --- a/db/fix_orphan_notes.py +++ b/db/fix_orphan_notes.py @@ -22,7 +22,7 @@ import sys import argparse -_sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) from pymsg import RpcClient # noqa: E402 DB_HOST = os.environ.get('DB_HOST', '127.0.0.1') @@ -98,4 +98,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main()