mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-03 19:58:42 +08:00 
			
		
		
		
	vue2 新增行为验证码
This commit is contained in:
		@@ -57,6 +57,43 @@ mybatis-plus:
 | 
			
		||||
      logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
 | 
			
		||||
  type-aliases-package: ${yudao.info.base-package}.module.*.dal.dataobject
 | 
			
		||||
 | 
			
		||||
--- #################### 验证码相关配置 ####################
 | 
			
		||||
 | 
			
		||||
aj:
 | 
			
		||||
  captcha:
 | 
			
		||||
    # 滑动验证,底图路径,不配置将使用默认图片
 | 
			
		||||
    # 支持全路径
 | 
			
		||||
    # 支持项目路径,以classpath:开头,取resource目录下路径,例:classpath:images/jigsaw
 | 
			
		||||
    jigsaw: classpath:images/jigsaw
 | 
			
		||||
    #滑动验证,底图路径,不配置将使用默认图片
 | 
			
		||||
    ##支持全路径
 | 
			
		||||
    # 支持项目路径,以classpath:开头,取resource目录下路径,例:classpath:images/pic-click
 | 
			
		||||
    pic-click: classpath:images/pic-click
 | 
			
		||||
    # 缓存local/redis...
 | 
			
		||||
    cache-type: redis
 | 
			
		||||
    # local缓存的阈值,达到这个值,清除缓存
 | 
			
		||||
    cache-number: 1000
 | 
			
		||||
    # local定时清除过期缓存(单位秒),设置为0代表不执行
 | 
			
		||||
    timing-clear: 180
 | 
			
		||||
    # 验证码类型default两种都实例化。
 | 
			
		||||
    type: default
 | 
			
		||||
    # 右下角水印文字(我的水印)https://tool.chinaz.com/tools/unicode.aspx 中文转Unicode
 | 
			
		||||
    water-mark: 芋道源码
 | 
			
		||||
    # 滑动干扰项(0/1/2)
 | 
			
		||||
    interference-options: 2
 | 
			
		||||
    # 接口请求次数一分钟限制是否开启 true|false
 | 
			
		||||
    req-frequency-limit-enable: false
 | 
			
		||||
    # 验证失败5次,get接口锁定
 | 
			
		||||
    req-get-lock-limit: 5
 | 
			
		||||
    # 验证失败后,锁定时间间隔,s
 | 
			
		||||
    req-get-lock-seconds: 360
 | 
			
		||||
    # get接口一分钟内请求数限制
 | 
			
		||||
    req-get-minute-limit: 30
 | 
			
		||||
    # check接口一分钟内请求数限制
 | 
			
		||||
    req-check-minute-limit: 60
 | 
			
		||||
    # verify接口一分钟内请求数限制
 | 
			
		||||
    req-verify-minute-limit: 60
 | 
			
		||||
 | 
			
		||||
--- #################### 芋道相关配置 ####################
 | 
			
		||||
 | 
			
		||||
yudao:
 | 
			
		||||
@@ -92,7 +129,8 @@ yudao:
 | 
			
		||||
    enable: true
 | 
			
		||||
    ignore-urls:
 | 
			
		||||
      - /admin-api/system/tenant/get-id-by-name # 基于名字获取租户,不许带租户编号
 | 
			
		||||
      - /admin-api/system/captcha/get-image # 获取图片验证码,和租户无关
 | 
			
		||||
      - /captcha/get # 获取图片验证码,和租户无关
 | 
			
		||||
      - /captcha/check # 校验图片验证码,和租户无关
 | 
			
		||||
      - /admin-api/infra/file/*/get/** # 获取图片,和租户无关
 | 
			
		||||
      - /admin-api/system/sms/callback/* # 短信回调接口,无法带上租户编号
 | 
			
		||||
      - /app-api/pay/order/notify/* # 支付回调通知,不携带租户编号
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user