- change NotifyStoreMessage template to 7ngcTFYiUFw66BMzIYntM1tpy-xZkJwlcCT5pVtXwtw
This commit is contained in:
@@ -339,23 +339,27 @@ func NotifyStoreOpRequestStatus(isAccepted bool, storeID, nameID int, spuName st
|
|||||||
|
|
||||||
func NotifyStoreMessage(storeID, msgID, msgStatusID int, title, content string) (err error) {
|
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)
|
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)
|
fileURL := fmt.Sprintf("%s%d", WX_TO_STORE_SKU_PAGE_URL, storeID)
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"first": map[string]interface{}{
|
"first": map[string]interface{}{
|
||||||
"value": title,
|
"value": content,
|
||||||
"color": "#333333",
|
"color": "#333333",
|
||||||
},
|
},
|
||||||
"keyword1": map[string]interface{}{
|
"keyword1": map[string]interface{}{
|
||||||
"value": content,
|
"value": title,
|
||||||
"color": "#2E408E",
|
"color": "#2E408E",
|
||||||
},
|
},
|
||||||
"keyword2": map[string]interface{}{
|
"keyword2": map[string]interface{}{
|
||||||
"value": utils.Time2Str(time.Now()),
|
"value": "请忽略",
|
||||||
|
"color": "#2E408E",
|
||||||
|
},
|
||||||
|
"keyword3": map[string]interface{}{
|
||||||
|
"value": "请忽略",
|
||||||
"color": "#2E408E",
|
"color": "#2E408E",
|
||||||
},
|
},
|
||||||
"remark": map[string]interface{}{
|
"remark": map[string]interface{}{
|
||||||
"value": "点击查看详情",
|
"value": "",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
return SendMsgToStore(storeID, templateID, fileURL, data)
|
return SendMsgToStore(storeID, templateID, fileURL, data)
|
||||||
|
|||||||
Reference in New Issue
Block a user