From 1902cfbc53b6de49442c7a625c47497ffb797a7e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 20 Apr 2026 13:41:03 +0800 Subject: [PATCH] bugfix --- uapi/uapi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uapi/uapi.py b/uapi/uapi.py index 5b06668..c57198a 100644 --- a/uapi/uapi.py +++ b/uapi/uapi.py @@ -14,9 +14,11 @@ from random import randint class UpAppApi: def __init__(self, request=None): - self.env = ServerEnv() if request: + self.env = request._run_ns.copy() self.env.request = request + else: + self.env = ServerEnv().copy() self.uapi_data = self.env.uapi_data self.auth_api = None self.auth_ret = None