|
|
@@ -32,19 +32,19 @@ func GetAliMsgContent(msg_type string) (string, string, string) {
|
|
|
case SIGN_UP:
|
|
|
action = fmt.Sprintf("完成注册")
|
|
|
// sign = "注册验证"
|
|
|
- template = "SMS_189215312"
|
|
|
+ template = "SMS_200714548"
|
|
|
case RESET_PWD:
|
|
|
action = fmt.Sprintf("重置密码")
|
|
|
// sign = "变更验证"
|
|
|
- template = "SMS_189215312"
|
|
|
+ template = "SMS_200714548"
|
|
|
case BINDING:
|
|
|
action = fmt.Sprintf("完成绑定")
|
|
|
// sign = "身份验证"
|
|
|
- template = "SMS_189215312"
|
|
|
+ template = "SMS_200714548"
|
|
|
case RESET_TRADE_PWD:
|
|
|
action = fmt.Sprintf("设置交易密码")
|
|
|
// sign = "变更验证"
|
|
|
- template = "SMS_189215312"
|
|
|
+ template = "SMS_200714548"
|
|
|
}
|
|
|
|
|
|
return sign, template, action
|
|
|
@@ -58,7 +58,7 @@ func SendSmsWithAli(tels []string, sign, template, action, code string) {
|
|
|
params := fmt.Sprintf(`{"code":"%s"}`, code)
|
|
|
/* ok, resp := alidayu.SendSMS(mobile, sign, template, params)*/
|
|
|
dysms.HTTPDebugEnable = true
|
|
|
- dysms.SetACLClient(beego.AppConfig.String("AliOssAccessId"), beego.AppConfig.String("AliOssAccessSecret")) // dysms.New(ACCESSID, ACCESSKEY)
|
|
|
+ dysms.SetACLClient(beego.AppConfig.String("AliSmsAccessId"), beego.AppConfig.String("AliSmsAccessSecret")) // dysms.New(ACCESSID, ACCESSKEY)
|
|
|
|
|
|
// 短信发送
|
|
|
respSendSms, err := dysms.SendSms(uuid.New(), mobile, sign, template, params).DoActionWithException()
|