From 995cbd8df785d96dc2afaee0201557c9793cf95b Mon Sep 17 00:00:00 2001 From: Gabriel <18961704591@163.com> Date: Mon, 2 Feb 2026 17:12:25 +0800 Subject: [PATCH] fix: apply ASR config values --- apiservice/biz/asr/asr.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apiservice/biz/asr/asr.go b/apiservice/biz/asr/asr.go index c5ff457..fbf06a4 100644 --- a/apiservice/biz/asr/asr.go +++ b/apiservice/biz/asr/asr.go @@ -64,15 +64,15 @@ func RecognizeAudioHandler(ctx context.Context, c *app.RequestContext) { }) } -func InitModelCfg(appID, token, cluster string) error { - if appID == "" || token == "" || cluster == "" { +func InitModelCfg(appIDValue, tokenValue, clusterValue string) error { + if appIDValue == "" || tokenValue == "" || clusterValue == "" { return fmt.Errorf("AsrModel.AppID=%s, AsrModel.Token=%s, AsrModel.Cluster=%s,"+ - "please check your config file", appID, token, cluster) + "please check your config file", appIDValue, tokenValue, clusterValue) } once.Do(func() { - appID = appID - token = token - cluster = cluster + appID = appIDValue + token = tokenValue + cluster = clusterValue }) return nil }