Verified Commit 44915748 authored by Cui's avatar Cui

add new message type [MASS] alias CUSTOMER

parent 7908c975
......@@ -9,7 +9,7 @@ type MessageStruct struct {
AppId string `json:"appId" bson:"appId"`
SmsAppId int `json:"smsAppId" bson:"smsAppId"`
SmsAppKey string `json:"smsAppKey" bson:"smsAppKey"`
Action string
Action string `json:"action" bson:"action"` // 推送类型 OneTime_Push,Timing_Push,Delay_Push,Nomal_Push
Retry int `json:"retry"`
PushCount int `json:"pushCount"`
......
......@@ -14,6 +14,7 @@ func Sender(accessToken string, message MessageStruct) (int, string) {
switch message.MessageType {
case "CUSTOMER":
case "MASS":
var cmi CustomerMessageInterface
err := json.Unmarshal(message.MessageData, &cmi)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment