切换kit包依赖为本库kit

This commit is contained in:
❀ » Cato Sweeney. ❀ » Console@the.bb
2024-01-23 20:25:47 +08:00
parent e9a187520c
commit 9746ee63cd
109 changed files with 400 additions and 371 deletions

View File

@@ -8,7 +8,7 @@ import (
ruleEntity "pandax/apps/rule/entity"
ruleService "pandax/apps/rule/services"
"pandax/iothub/netbase"
"github.com/PandaXGO/PandaKit/biz"
"pandax/kit/biz"
"pandax/pkg/cache"
"pandax/pkg/global"
"pandax/pkg/global/model"
@@ -155,7 +155,7 @@ func SendZtWebsocket(deviceId, message string) {
"attrs": msgVals,
}
data, _ := json.Marshal(twinData)
for stageid := range websocket.Wsp {
for stageid := range websocket.Wsp {
CJNR := fmt.Sprintf(`{"MESSAGETYPE":"01","MESSAGECONTENT": %s}`, string(data))
websocket.SendMessage(CJNR, stageid)
}