api: Fix mini-prog-entry 500
This commit is contained in:
parent
692a552fc1
commit
01c3724d37
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user