|
|
@@ -5,6 +5,7 @@ import ( |
|
|
|
md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_jg_push.git/md" |
|
|
|
"fmt" |
|
|
|
svc "gim/internal/business/comm/service" |
|
|
|
"gim/internal/business/comm/utils" |
|
|
|
md3 "gim/internal/logic/domain/message/md" |
|
|
|
"gim/pkg/logger" |
|
|
|
"go.uber.org/zap" |
|
|
@@ -78,6 +79,16 @@ func JgPush(args md3.PushParams) { |
|
|
|
Intent: intent, |
|
|
|
} |
|
|
|
send, res, err := jg_push.Send(jgPushAppKey, jgPushAppSecret, param) |
|
|
|
utils.FilePutContents("JgPush", utils.SerializeStr(map[string]interface{}{ |
|
|
|
"send": send, |
|
|
|
"res": res, |
|
|
|
"push_alia": args.PushAlia, |
|
|
|
"title": param.Title, |
|
|
|
"content": param.Content, |
|
|
|
"jg_push_app_key": jgPushAppKey, |
|
|
|
"jg_push_app_secret": jgPushAppSecret, |
|
|
|
})) |
|
|
|
|
|
|
|
logger.Logger.Debug("JgPush_log", |
|
|
|
zap.String("send", send), |
|
|
|
zap.String("res", res), |
|
|
|