goweb/config/alisms.go

16 lines
346 B
Go

package config
// 阿里云通讯配置信息
type aliSmsConfig struct {
AccessKey string
AccessSecret string
}
// InitAliSmsConfig 初始化阿里云通信配置
func InitAliSmsConfig() {
key := getEnvVal("ALI_SMS_KEY", "")
secret := getEnvVal("ALI_SMS_SECRET", "")
AliSmsConfig = aliSmsConfig{AccessKey: key, AccessSecret: secret}
}