fix: 令牌不再走 query(白名单除外)、订阅额度发成功才扣、测试临时目录移出仓库、kpt 外置 json、README 产品优先

This commit is contained in:
agent
2026-11-18 20:31:09 +08:00
parent 9348d5ad81
commit 1aaff9f679
17 changed files with 1709 additions and 24 deletions
+5 -1
View File
@@ -17,7 +17,11 @@ from backend import db as dbm
from backend import services as svc
from backend import textin
TMP_ROOT = Path(__file__).resolve().parent / "_tmp_textin"
import sys
sys.path.insert(0, str(Path(__file__).resolve().parent))
from _tmpdir import workdir as _workdir # noqa: E402
TMP_ROOT = _workdir("textin")
def _paper_png(w=1600, h=1200, handwriting=True) -> bytes: