|
@@ -181,7 +181,7 @@ func (p *PushJob) doPush(pusher Pusher, taskType int, u *UserInfo, sl *SortList,
|
|
|
"descriptAppend": descriptAppend,
|
|
|
"type": "bid",
|
|
|
"userId": u.Id,
|
|
|
- "url": "/jyapp/free/sess/" + Se.EncodeString(u.Id+",_id,"+strconv.Itoa(int(now.Unix()))+",") + "__" + Se.EncodeString(fmt.Sprintf(Config.AppMsg.Url, "free", pushParam.PushDate)),
|
|
|
+ "url": "/jyapp/free/sess/" + Se.EncodeString(u.Id+",_id,"+strconv.Itoa(int(now.Unix()))+",") + "__" + Se.EncodeString(fmt.Sprintf(Config.AppMsg.Url, "free", util.If(u.SubPushInactive == 1, "", fmt.Sprint(pushParam.PushDate)).(string))),
|
|
|
"otherPushId": u.Opushid,
|
|
|
"jgPushId": u.Jpushid, //极光-推送id
|
|
|
})
|
|
@@ -235,7 +235,7 @@ func (p *PushJob) sendWeixin(k *UserInfo, pushParam *PushParam) bool {
|
|
|
OpenId: k.S_m_openid,
|
|
|
TplId: Config.WxTplMsg.Id,
|
|
|
TmplData: tmplData,
|
|
|
- Url: Config.WxDomain + "/front/sess/" + Se.EncodeString(k.Id+",_id,"+strconv.Itoa(int(time.Now().Unix()))+",") + "__" + Se.EncodeString(fmt.Sprintf(Config.WxTplMsg.Url, "free", pushParam.PushDate, "")),
|
|
|
+ Url: Config.WxDomain + "/front/sess/" + Se.EncodeString(k.Id+",_id,"+strconv.Itoa(int(time.Now().Unix()))+",") + "__" + Se.EncodeString(fmt.Sprintf(Config.WxTplMsg.Url, "free", util.If(k.SubPushInactive == 1, "", fmt.Sprint(pushParam.PushDate)).(string), "")),
|
|
|
})
|
|
|
return ok
|
|
|
}
|