zhangzengfei
2024-10-22 2c77f012601b7788dc58b0c9fd99aad587983b0d
service/device.go
@@ -3,11 +3,11 @@
import (
   "encoding/json"
   "fmt"
   "gat1400Exchange/pkg"
   "time"
   "gat1400Exchange/config"
   "gat1400Exchange/models"
   "gat1400Exchange/util"
)
type DevReportData struct {
@@ -85,7 +85,7 @@
      }
      headers := map[string]string{"Content-Type": "application/json; charset=UTF-8"}
      _, err = util.HttpPost(config.ForwardConf.ReportServer, headers, data)
      _, err = pkg.HttpPost(config.ForwardConf.ReportServer, headers, data)
      if err != nil {
         return err
      }