feat: support volc engine sms (#252)

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fix

label -> row
This commit is contained in:
Kininaru
2021-08-13 14:36:46 +08:00
committed by Yang Luo
parent 8d9451124c
commit d3c4f14bd4
5 changed files with 71 additions and 20 deletions

View File

@ -27,7 +27,7 @@ func SendCodeToPhone(provider *Provider, phone, code string) string {
}
param := make(map[string]string)
if provider.Type == "tencent" {
if provider.Type == go_sms_sender.TencentCloud {
param["0"] = code
} else {
param["code"] = code