mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[fix] 规则链解析失败
This commit is contained in:
@@ -2,6 +2,7 @@ package netbase
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
"pandax/apps/device/entity"
|
||||
"pandax/apps/device/services"
|
||||
"pandax/iothub/server/emqxserver/protobuf"
|
||||
@@ -37,6 +38,7 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user