Ver Fonte

del log

liuxiulin há 8 meses atrás
pai
commit
dedf6d8128
1 ficheiros alterados com 3 adições e 4 exclusões
  1. 3 4
      services/mqttaccess/mqtt_provider.go

+ 3 - 4
services/mqttaccess/mqtt_provider.go

@@ -2,7 +2,6 @@ package main
 
 import (
 	"context"
-	"fmt"
 	"github.com/gogf/gf/encoding/gjson"
 	"sparrow/pkg/klink"
 	"sparrow/pkg/models"
@@ -133,21 +132,21 @@ func (mp *MQTTProvider) OnDeviceMessage(deviceid, vendorId string, msgtype strin
 }
 
 func processReportStatus(deviceid, vendorId string, message *gjson.Json) {
-	fmt.Printf("deviceId-------------------:%v", deviceid)
+
 	device := &models.Device{}
 	err := server.RPCCallByName(nil, rpcs.RegistryServerName, "Registry.FindDeviceByIdentifier", deviceid, device)
 	if err != nil {
 		server.Log.Errorf("device not found %s", deviceid)
 		return
 	}
-	fmt.Printf("device-------------------:%v", device)
+
 	product := &models.Product{}
 	err = server.RPCCallByName(nil, rpcs.RegistryServerName, "Registry.FindProduct", device.ProductID, product)
 	if err != nil {
 		server.Log.Errorf("find product error : %v", err)
 		return
 	}
-	fmt.Printf("product-------------------:%v", product)
+
 	reply := rpcs.ReplyOnStatus{}
 	args := rpcs.ArgsOnStatus{
 		DeviceId:    deviceid,