|
@@ -36,14 +36,14 @@ type config struct {
|
|
|
WeChatUrl string `json:"weChatUrl"`
|
|
|
} `json:"siteMsg"`
|
|
|
WebhookURL []string `json:"webhookURL"`
|
|
|
- DrawNum int `json:"drawNum"` //一次最大抽奖次数
|
|
|
+ DrawNum int `json:"drawNum"` //一次最大抽奖次数
|
|
|
+ FASwitch bool `json:"firstAccessSwitch"` //首次访问 是否赠送剑鱼币 开关
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
Config *config
|
|
|
// 发送邮件邮箱
|
|
|
GmailAuth []*mail.GmailAuth
|
|
|
- FASwitch bool //首次访问 是否赠送剑鱼币 开关---firstAccessSwitch
|
|
|
)
|
|
|
|
|
|
func init() {
|
|
@@ -53,9 +53,6 @@ func init() {
|
|
|
if Config.DrawNum == 0 {
|
|
|
Config.DrawNum = consts.Steps10
|
|
|
}
|
|
|
- if Config.Name != "" {
|
|
|
- FASwitch = true
|
|
|
- }
|
|
|
for _, v := range Config.Mail {
|
|
|
mail2 := &mail.GmailAuth{
|
|
|
SmtpHost: v.Addr,
|