Skip to content

绕过短信验证码发送

Yugang Zhou edited this page Jun 29, 2019 · 1 revision

为避免在测试场景中大量发送验证码造成损失或发送到顾客手机中造成干扰,Daming提供了设置固定验证码并忽略实际发送动作的功能。

可以通过配置文件/环境变量开启该模式

# application-{profile}.properties
daming.sms.verification.bypass.enabled=true
daming.sms.verification.bypass.value=111111  # 默认code为123456

Clone this wiki locally