提交 e5a5fd94 编写于 作者: A Anne_LXM

优化 未配置短信模板时开启测试模式

上级 bdd17403
...@@ -49,7 +49,7 @@ module.exports = async function (params = {}) { ...@@ -49,7 +49,7 @@ module.exports = async function (params = {}) {
this.config.service.sms && this.config.service.sms &&
this.config.service.sms.scene && this.config.service.sms.scene &&
this.config.service.sms.scene[scene]) || {} this.config.service.sms.scene[scene]) || {}
if (!templateId) { if (!templateId || !templateId.replace(/[^0-9a-zA-Z]/g, '')) {
await require('../../lib/utils/verify-code') await require('../../lib/utils/verify-code')
.setMobileVerifyCode.call(this, { .setMobileVerifyCode.call(this, {
mobile: params.mobile, mobile: params.mobile,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册