aa
This commit is contained in:
@@ -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{}{
|
||||
|
||||
Reference in New Issue
Block a user