From e5a5fd94f89a44df8a751dee528dfa85f62cb4ae Mon Sep 17 00:00:00 2001 From: Anne_LXM <54163582+anne-lxm@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:11:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=9C=AA=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=9F=AD=E4=BF=A1=E6=A8=A1=E6=9D=BF=E6=97=B6=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E6=B5=8B=E8=AF=95=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cloudfunctions/uni-id-co/module/verify/send-sms-code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b549a1f..1fdf86b 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, -- GitLab