This commit is contained in:
苏尹岚
2021-02-24 11:53:26 +08:00
parent 3d240a86a1
commit 04839ce472
3 changed files with 11 additions and 15 deletions

View File

@@ -632,7 +632,7 @@ func NotifyStoreMessage(storeID, msgID, msgStatusID int, msg *model.Message) (er
},
}
case model.MessageTypeStoreAct:
actMap := make(map[string]interface{})
actMap := &model.MessageActInfo{}
err = json.Unmarshal([]byte(msg.ActInfo), &actMap)
templateID = WX_NORMAL_STORE_ACT_MSG_TEMPLATE_ID
data = map[string]interface{}{
@@ -645,11 +645,11 @@ func NotifyStoreMessage(storeID, msgID, msgStatusID int, msg *model.Message) (er
"color": "#2E408E",
},
"keyword2": map[string]interface{}{
"value": actMap["beginAt"].(string) + "-" + actMap["endAt"].(string),
"value": actMap.BeginAt + "-" + actMap.EndAt,
"color": "#2E408E",
},
"keyword3": map[string]interface{}{
"value": model.VendorNames[int(utils.Interface2Float64WithDefault((actMap["vendorID"]), 0))],
"value": model.VendorNames[int(utils.Interface2Float64WithDefault((actMap.VendorID), 0))],
"color": "#2E408E",
},
"remark": map[string]interface{}{