- change NotifyStoreMessage template to 7ngcTFYiUFw66BMzIYntM1tpy-xZkJwlcCT5pVtXwtw

This commit is contained in:
gazebo
2018-12-26 17:54:52 +08:00
parent 662fd6d8b1
commit 742fc359cd

View File

@@ -339,23 +339,27 @@ func NotifyStoreOpRequestStatus(isAccepted bool, storeID, nameID int, spuName st
func NotifyStoreMessage(storeID, msgID, msgStatusID int, title, content string) (err error) {
globals.SugarLogger.Debugf("NotifyStoreMessage storeID:%d, msgID:%d, title:%s, content:%s", storeID, msgID, title, content)
templateID := "gIG2olBZtQbjXmp6doNB_dESu60By5xuXYOGxksLv3Y"
templateID := "7ngcTFYiUFw66BMzIYntM1tpy-xZkJwlcCT5pVtXwtw"
fileURL := fmt.Sprintf("%s%d", WX_TO_STORE_SKU_PAGE_URL, storeID)
data := map[string]interface{}{
"first": map[string]interface{}{
"value": title,
"value": content,
"color": "#333333",
},
"keyword1": map[string]interface{}{
"value": content,
"value": title,
"color": "#2E408E",
},
"keyword2": map[string]interface{}{
"value": utils.Time2Str(time.Now()),
"value": "请忽略",
"color": "#2E408E",
},
"keyword3": map[string]interface{}{
"value": "请忽略",
"color": "#2E408E",
},
"remark": map[string]interface{}{
"value": "点击查看详情",
"value": "",
},
}
return SendMsgToStore(storeID, templateID, fileURL, data)