Commit 9f03e311 authored by 赵文静's avatar 赵文静

修改mac=MacWifi

parent 87e590ae
Pipeline #5407 passed with stage
in 0 seconds
...@@ -59,7 +59,7 @@ func SpeechNlu(reqStruct *model.SemanticReq) (string, *errCode.Error) { ...@@ -59,7 +59,7 @@ func SpeechNlu(reqStruct *model.SemanticReq) (string, *errCode.Error) {
// 自动清理过期Session的守护协程 // 自动清理过期Session的守护协程
//go StartSessionJanitor(1 * time.Minute) //go StartSessionJanitor(1 * time.Minute)
sessionId, err = database.GetSession(reqStruct.MacVoice) sessionId, err = database.GetSession(reqStruct.MacWifi)
//log.Println("拿到的sessionId:", sessionId) //log.Println("拿到的sessionId:", sessionId)
//// 自动携带有效SessionID(自动刷新时间戳) //// 自动携带有效SessionID(自动刷新时间戳)
...@@ -76,7 +76,7 @@ func SpeechNlu(reqStruct *model.SemanticReq) (string, *errCode.Error) { ...@@ -76,7 +76,7 @@ func SpeechNlu(reqStruct *model.SemanticReq) (string, *errCode.Error) {
speechNluWs := SpeechNlpWs{} speechNluWs := SpeechNlpWs{}
var nlpWsConn *websocket.Conn var nlpWsConn *websocket.Conn
deviceId := util.EncodeMD5(reqStruct.MacVoice) deviceId := util.EncodeMD5(reqStruct.MacWifi)
nlpWsConn, err = speechNluWs.SpeechWs(reqStruct.Ip, deviceId) nlpWsConn, err = speechNluWs.SpeechWs(reqStruct.Ip, deviceId)
if err != nil { if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment