[fix] 客户端map错误

This commit is contained in:
PandaX
2023-11-28 17:22:36 +08:00
parent 3107c6537e
commit 58341b0236
8 changed files with 36 additions and 18 deletions

View File

@@ -2,7 +2,6 @@ package netbase
import (
"encoding/json"
"log"
"pandax/apps/device/entity"
"pandax/apps/device/services"
"pandax/iothub/server/emqxserver/protobuf"
@@ -38,7 +37,6 @@ func Auth(authToken string) bool {
return false
}
etoken = services.GetDeviceToken(&device.Device)
log.Println("设置设备协议", device.Product.ProtocolName)
etoken.DeviceProtocol = device.Product.ProtocolName
err = cache.SetDeviceEtoken(authToken, etoken.GetMarshal(), time.Hour*24*365)
if err != nil {