Explorar o código

验证码短信发送

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
37df51377d
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      go/gopath/src/fohow.com/apps/models/sms_model/sms.go

+ 5 - 5
go/gopath/src/fohow.com/apps/models/sms_model/sms.go

@@ -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()