From 63cd9d392a3e6887359bcc73b7268bcd7864e773 Mon Sep 17 00:00:00 2001 From: AI Engineer Date: Wed, 10 Jun 2026 09:52:55 +0800 Subject: [PATCH] refactor: use jsmod.Get for context configuration (by AI) --- js_export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js_export.go b/js_export.go index eab912d..0a5c40e 100644 --- a/js_export.go +++ b/js_export.go @@ -32,7 +32,7 @@ func init() { } else { // 2. 远程数据库前缀校验 var allowedDSNs []string - cast.Convert(&allowedDSNs, ctx.Value("AllowedDSNs")) + cast.Convert(&allowedDSNs, jsmod.Get(ctx, "AllowedDSNs")) matched := false for _, prefix := range allowedDSNs { if strings.HasPrefix(name, prefix) {