优化短信发送逻辑,支持可选业务类型参数
This commit is contained in:
parent
761b8371d8
commit
9bd21cf288
4
msg.go
4
msg.go
|
@ -24,8 +24,8 @@ func NewMessageCenter(host, clientKey, clientSecret, serverIndex, tempIndex stri
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
msg.header = map[string]string{"content-type": "application/json; charset=utf-8"}
|
msg.header = map[string]string{"content-type": "application/json; charset=utf-8"}
|
||||||
accessToken, err := msg.getAccessToken()
|
token, err := msg.getAccessToken()
|
||||||
msg.header = map[string]string{"Authorization": accessToken, "content-type": "application/json; charset=utf-8"}
|
msg.header = map[string]string{"Authorization": token, "content-type": "application/json; charset=utf-8"}
|
||||||
|
|
||||||
return msg, err
|
return msg, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue