send msg file modify

This commit is contained in:
Gordon
2021-12-23 19:50:04 +08:00
parent ba249d294e
commit 33ae9dae0a
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -13,14 +13,14 @@ import (
type JPushResp struct {
}
func JGAccountListPush(accounts []string, content, detailContent, platform string) ([]byte, error) {
func JGAccountListPush(accounts []string, alert, detailContent, platform string) ([]byte, error) {
var pf requestBody.Platform
_ = pf.SetPlatform(platform)
var au requestBody.Audience
au.SetAlias(accounts)
var no requestBody.Notification
no.SetAlert(content, platform)
no.SetAlert(alert, platform)
var me requestBody.Message
me.SetMsgContent(detailContent)
var o requestBody.Options