diff --git a/c2c.http b/c2c.http index 717b84b7ad20ea1ca01acc27278339a1febd3738..5c70dbde660cec902f923b60411bbab8d00d45e8 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 bf711aa14971bb72ac7488c506bdf6dc2b391113..6c7e0c361784f15fabea95c440ae6558b9db3f04 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