diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-sms-code.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-sms-code.js index b549a1fd2a7aa65d19c7bac936326107505f41c7..1fdf86b1ebad19c6514b95b280d6157ea28b14c3 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-sms-code.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-sms-code.js @@ -49,7 +49,7 @@ module.exports = async function (params = {}) { this.config.service.sms && this.config.service.sms.scene && this.config.service.sms.scene[scene]) || {} - if (!templateId) { + if (!templateId || !templateId.replace(/[^0-9a-zA-Z]/g, '')) { await require('../../lib/utils/verify-code') .setMobileVerifyCode.call(this, { mobile: params.mobile,