Roc 1 月之前
父节点
当前提交
6238e3aa15
共有 1 个文件被更改,包括 1 次插入1 次删除
  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