From 5a8ac615029f60ad9a39d9ffb784021d38142523 Mon Sep 17 00:00:00 2001 From: qingss0 <1776177662@qq.com> Date: Wed, 5 Aug 2026 16:38:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20gateway=20=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E7=99=BD=E5=90=8D=E5=8D=95=E5=B9=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20fix=5Forphan=5Fnotes=20=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - confs/configs/gateway.ini: 管理员账号从 qing@qsont.me;shufeng@qsont.me 更新为 1776177662@qq.com;277665039@qq.com - db/fix_orphan_notes.py: 修复 _sys.path 笔误为 sys.path,补充文件末尾换行 --- confs/configs/gateway.ini | 2 +- db/fix_orphan_notes.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() -- 2.54.0