Roc hai 1 mes
pai
achega
6238e3aa15
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/english_report/email.go

+ 1 - 1
controllers/english_report/email.go

@@ -598,7 +598,7 @@ func (this *EnglishReportEmailController) Send() {
 
 	// 加个缓存吧,避免重复点击
 	cacheKey := "CACHE_ENGLISH_REPORT_SEND_" + strconv.Itoa(req.ReportId)
-	if !utils.Rc.SetNX(cacheKey, 1, 30*time.Second) {
+	if !utils.Rc.SetNX(cacheKey, 1, 300*time.Second) {
 		br.Msg = "系统处理中,请稍后重试!"
 		br.ErrMsg = "系统处理中,请稍后重试!" + sysUser.RealName + ";data:" + string(this.Ctx.Input.RequestBody)
 		return