liuxiaolong
2020-08-11 395c1305c0d222016c001978038a2fcda0d4e10c
add log
1个文件已修改
6 ■■■■■ 已修改文件
service/msgPush.go 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/msgPush.go
@@ -264,11 +264,13 @@
    if len(aliasArr) == 0 {
        fmt.Println("没有推送目标,aliasArr is empty")
        return true, nil
    } else {
        fmt.Println("PushByAlias arr:", aliasArr)
    }
    cResult, taskId, ce := createPushMsg(title, msg)
    fmt.Println("createPushMsg taskId:", taskId, "cResult:",cResult, "err:", ce)
    if !cResult {
        fmt.Println("createPushMsg taskId:", taskId, "err:", ce)
        return false, errors.New("创建推送前置消息失败")
    }
@@ -286,7 +288,7 @@
            "alias": aliasArr,
        },
        "taskid": taskId,
        "is_async": true,
        "is_async": false,
    }
    header := map[string]string {
        "token": token,