From 27ee0a8a01f2c153981ef5d7408bf110f2cc0983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=96=87=E9=9D=99?= <1319697849@qq.com> Date: Fri, 13 Jun 2025 14:29:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c2c.http | 2 +- pkg/database/redis.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c2c.http b/c2c.http index 717b84b..5c70dbd 100644 --- a/c2c.http +++ b/c2c.http @@ -33,7 +33,7 @@ Content-Type: application/json }, "nluRet": { "asr_recongize": "", - "text": "咏鹅" + "text": "播放周杰伦的音乐" } }, "version": "v0" diff --git a/pkg/database/redis.go b/pkg/database/redis.go index bf711aa..6c7e0c3 100644 --- a/pkg/database/redis.go +++ b/pkg/database/redis.go @@ -43,7 +43,7 @@ func UpdateSession(mac, sessionId string) { //, expiration time.Duration } func getSessionKey(mac string) string { - return fmt.Sprintf("session:%s", mac) + return fmt.Sprintf("snp:rsid:%s:str", mac) } // GetSession 根据 MAC 地址查询对应的 sessionId -- GitLab