sqlite的api,便于内部使用
liuxiaolong
2020-11-04 81efc7621ceb21f3529e540cf936814b8b03e2e5
eventPush.go
@@ -3,7 +3,6 @@
import (
   "basic.com/pubsub/protomsg.git"
   "encoding/json"
   "fmt"
   "strconv"
)
@@ -35,7 +34,7 @@
   var res Result
   if err = json.Unmarshal(body, &res); err != nil {
      fmt.Println(err)
      logPrint(err)
      return false,nil
   }
@@ -92,7 +91,7 @@
   bytes, _ := json.Marshal(res.Data)
   err = json.Unmarshal(bytes, &allRules)
   if err !=nil{
      fmt.Println("all eventPushRules unmarshal err:",err)
      logPrint("all eventPushRules unmarshal err:",err)
      return false,nil
   }
   return true,allRules