Browse Source

update

master
DengBiao 1 year ago
parent
commit
39f55640f5
3 changed files with 7 additions and 3 deletions
  1. +1
    -1
      go.mod
  2. +2
    -2
      go.sum
  3. +4
    -0
      internal/logic/domain/message/service/app_push.go

+ 1
- 1
go.mod View File

@@ -3,7 +3,7 @@ module gim
go 1.18

require (
code.fnuoos.com/go_rely_warehouse/zyos_go_jg_push.git v1.0.2
code.fnuoos.com/go_rely_warehouse/zyos_go_jg_push.git v1.0.5
github.com/alberliu/gn v1.10.0
github.com/gin-gonic/gin v1.7.7
github.com/go-redis/redis v6.15.9+incompatible


+ 2
- 2
go.sum View File

@@ -1,6 +1,6 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
code.fnuoos.com/go_rely_warehouse/zyos_go_jg_push.git v1.0.2 h1:LUWlvBgmzZfGqvH4VGEWk+JhXHlI+MFmLNl9uX7eh28=
code.fnuoos.com/go_rely_warehouse/zyos_go_jg_push.git v1.0.2/go.mod h1:IEw6A61Kp2ctoeKIQMFVM/cFq9PUDAzJMb5lVXiEY2Y=
code.fnuoos.com/go_rely_warehouse/zyos_go_jg_push.git v1.0.5 h1:+MIZPOEhxTiu79CHwz5LuK5tSv40XxAHwftOUlyr+sY=
code.fnuoos.com/go_rely_warehouse/zyos_go_jg_push.git v1.0.5/go.mod h1:IEw6A61Kp2ctoeKIQMFVM/cFq9PUDAzJMb5lVXiEY2Y=
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=


+ 4
- 0
internal/logic/domain/message/service/app_push.go View File

@@ -66,12 +66,16 @@ func JgPush(args md3.PushParams) {
"memo": args.Memo,
"times": args.Times,
}
var intent = map[string]interface{}{
"url": "#Intent;action=android.intent.action.MAIN;end",
}
var param = md2.PushParam{
Platform: "all",
Audience: aud,
Title: args.Title,
Content: args.Content,
Extras: extras,
Intent: intent,
}
send, res, err := jg_push.Send(jgPushAppKey, jgPushAppSecret, param)
logger.Logger.Debug("JgPush_log",


Loading…
Cancel
Save