|
@@ -23,7 +23,7 @@ func SendInterviewApplyTemplateMsg(realName, companyName, mobile, articleTitle,
|
|
|
}
|
|
|
}()
|
|
|
|
|
|
- accessToken, err := models.GetWxAccessToken()
|
|
|
+ accessToken, err := models.GetWxAccessTokenByXzs()
|
|
|
if err != nil {
|
|
|
msg = "GetWxAccessToken Err:" + err.Error()
|
|
|
return
|
|
@@ -50,7 +50,7 @@ func SendInterviewApplyTemplateMsg(realName, companyName, mobile, articleTitle,
|
|
|
sendData["keyword3"] = map[string]interface{}{"value": keyword3, "color": fontColor}
|
|
|
sendData["keyword4"] = map[string]interface{}{"value": keyword4, "color": fontColor}
|
|
|
|
|
|
- sendMap["template_id"] = utils.WxMsgTemplateIdApply
|
|
|
+ sendMap["template_id"] = utils.WxMsgTemplateIdApplyXzs
|
|
|
sendMap["data"] = sendData
|
|
|
sendTemplateMsg(sendUrl, openId, sendMap)
|
|
|
fmt.Println("send end")
|
|
@@ -68,7 +68,7 @@ func SendInterviewApplyCancelTemplateMsg(realName, companyName, mobile, articleT
|
|
|
utils.FileLog.Info("发送模版消息失败,msg:%s", msg)
|
|
|
}
|
|
|
}()
|
|
|
- accessToken, err := models.GetWxAccessToken()
|
|
|
+ accessToken, err := models.GetWxAccessTokenByXzs()
|
|
|
if err != nil {
|
|
|
msg = "GetWxAccessToken Err:" + err.Error()
|
|
|
return
|
|
@@ -91,7 +91,7 @@ func SendInterviewApplyCancelTemplateMsg(realName, companyName, mobile, articleT
|
|
|
sendData["keyword1"] = map[string]interface{}{"value": keyword1, "color": fontColor}
|
|
|
sendData["keyword2"] = map[string]interface{}{"value": keyword2, "color": fontColor}
|
|
|
|
|
|
- sendMap["template_id"] = utils.WxMsgTemplateIdApplyCancel
|
|
|
+ sendMap["template_id"] = utils.WxMsgTemplateIdApplyCancelXzs
|
|
|
sendMap["data"] = sendData
|
|
|
sendTemplateMsg(sendUrl, openId, sendMap)
|
|
|
fmt.Println("send end")
|
|
@@ -109,7 +109,7 @@ func SendPermissionApplyTemplateMsg(realName, companyName, mobile, openId, apply
|
|
|
utils.FileLog.Info("发送模版消息失败,msg:%s", msg)
|
|
|
}
|
|
|
}()
|
|
|
- accessToken, err := models.GetWxAccessToken()
|
|
|
+ accessToken, err := models.GetWxAccessTokenByXzs()
|
|
|
if err != nil {
|
|
|
msg = "GetWxAccessToken Err:" + err.Error()
|
|
|
return
|
|
@@ -136,7 +136,7 @@ func SendPermissionApplyTemplateMsg(realName, companyName, mobile, openId, apply
|
|
|
sendData["keyword3"] = map[string]interface{}{"value": keyword3, "color": fontColor}
|
|
|
sendData["keyword4"] = map[string]interface{}{"value": keyword4, "color": fontColor}
|
|
|
|
|
|
- sendMap["template_id"] = utils.WxMsgTemplateIdApply
|
|
|
+ sendMap["template_id"] = utils.WxMsgTemplateIdApplyXzs
|
|
|
sendMap["data"] = sendData
|
|
|
sendTemplateMsg(sendUrl, openId, sendMap)
|
|
|
fmt.Println("send end")
|
|
@@ -168,6 +168,7 @@ func toSendTemplateMsg(sendUrl string, data []byte) (err error) {
|
|
|
body, _ := ioutil.ReadAll(resp.Body)
|
|
|
var templateResponse SendTemplateResponse
|
|
|
err = json.Unmarshal(body, &templateResponse)
|
|
|
+ fmt.Println(templateResponse)
|
|
|
utils.FileLog.Info("SendResult %s:", string(body))
|
|
|
if err != nil {
|
|
|
utils.FileLog.Info("SendResult Unmarshal Err:%s", err.Error())
|