diff --git a/go.mod b/go.mod index 711ce6e..283298b 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index e03aef2..a2654b1 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/internal/logic/domain/message/service/app_push.go b/internal/logic/domain/message/service/app_push.go index 28095dd..4216d83 100644 --- a/internal/logic/domain/message/service/app_push.go +++ b/internal/logic/domain/message/service/app_push.go @@ -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",