From 442ed95acc45f1ac7ad742bf7103a90b78171e1a Mon Sep 17 00:00:00 2001 From: XingQue Date: Wed, 22 Jul 2026 18:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=99=9A=E6=8B=9F=E9=80=80=E6=AC=BE=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=20access=5Ftoken=20=E6=97=B6=E6=98=BE=E5=BC=8F?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=20cache=EF=BC=8C=E9=81=BF=E5=85=8D=E6=9C=AA?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=8A=A5=E9=94=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- yonghu/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yonghu/views.py b/yonghu/views.py index 4b914f9..2e5d1b2 100644 --- a/yonghu/views.py +++ b/yonghu/views.py @@ -9507,6 +9507,7 @@ class KefuPlatformRefundView(APIView): def _get_access_token(self): """获取 access_token,带缓存""" + from django.core.cache import cache cache_key = "virtual_payment_access_token" access_token = cache.get(cache_key) if not access_token: