瀏覽代碼

update

master
DengBiao 1 年之前
父節點
當前提交
39f55640f5
共有 3 個檔案被更改,包括 7 行新增3 行删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存