From 01c3724d37aee1144ba201cab6b264b45c569aa0 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Sat, 1 Mar 2025 20:30:30 +0000 Subject: [PATCH] api: Fix mini-prog-entry 500 --- api/api/products/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api/products/views.py b/api/api/products/views.py index 39e6b66..093c81c 100644 --- a/api/api/products/views.py +++ b/api/api/products/views.py @@ -1243,8 +1243,8 @@ def mini_prog_entry_redirect(code, tid): return redirect(sc.batch.scan_redirect_url) query = 'tenant=' + str(tid) key = 'mini-prog-entry.' + query - path = code.batch.mini_prog_entry_path or 'pages/index/index' - env_version = code.batch.mini_prog_entry_env_version or 'release' + path = sc.batch.mini_prog_entry_path or 'pages/index/index' + env_version = sc.batch.mini_prog_entry_env_version or 'release' url = cache.get_or_set(key, lambda: mplink(query, path, env_version), 300) return redirect(url)