config.js 1.3 KB

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) 2020 Tencent Cloud.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. 'use strict';
  17. // 腾讯云uni-app短信SMS插件依赖云函数的配置
  18. module.exports = {
  19. appId: '', // SMS SDK AppID
  20. appSign: '', // 短信签名
  21. verificationCodeCollection: 'verification_code', // 验证码数据表名(请提前在服务空间云数据库创建此表)
  22. verificationCodeTemplateId: '', // 验证码短信模板ID(模板中必需包含且只能包含一个变量值,用于填充验证码)
  23. verificationCodeLength: 4, // 验证码长度4~8(注:验证码为纯数字)
  24. verificationCodeExpires: 5, // 验证码有效期(单位:分钟)
  25. verificationCodeCheckTimes: 5 // 验证码有效次数,即允许用户输入错误次数,达到后自动失效
  26. };