فهرست منبع

发送邮件次数

wangshan 5 سال پیش
والد
کامیت
deb127a8f0
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/jfw/front/structedData.go
  2. 1 1
      src/jfw/modules/app/src/app/front/structedData.go

+ 1 - 1
src/jfw/front/structedData.go

@@ -313,7 +313,7 @@ func (t *StructedData) SendMailVerify() {
 			if isEmail(email) {
 				lastSendDEVerify := util.Int64All(t.GetSession("CreatSMVerifyTime"))
 				timeSpaceing := lastSendDEVerify - time.Now().Unix() + 60*5
-				incurKey := fmt.Sprintf("SendSMEmail_%s_%t", t.GetSession("userId"), time.Now().Day())
+				incurKey := fmt.Sprintf("SendSMEmail_%s_%d", t.GetSession("userId"), time.Now().Day())
 				if lastSendDEVerify == 0 || timeSpaceing < 0 {
 					//每日限制10次
 					times := util.IntAll(redis.Get("other", incurKey))

+ 1 - 1
src/jfw/modules/app/src/app/front/structedData.go

@@ -182,7 +182,7 @@ func (t *StructedData) SendMailVerify() {
 			if isEmail(email) {
 				lastSendDEVerify := util.Int64All(t.GetSession("CreatSMVerifyTime"))
 				timeSpaceing := lastSendDEVerify - time.Now().Unix() + 60*5
-				incurKey := fmt.Sprintf("SendSMEmail_%s_%t", t.GetSession("userId"), time.Now().Day())
+				incurKey := fmt.Sprintf("SendSMEmail_%s_%d", t.GetSession("userId"), time.Now().Day())
 				if lastSendDEVerify == 0 || timeSpaceing < 0 {
 					//每日限制10次
 					times := util.IntAll(redis.Get("other", incurKey))