From adf67f2c525e3ac0f75211ada929c398693f1ffa Mon Sep 17 00:00:00 2001 From: cool Date: Mon, 26 Jun 2023 15:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/base/service/sys/param.ts | 1 - src/modules/user/config.ts | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/base/service/sys/param.ts b/src/modules/base/service/sys/param.ts index 12fde72..fbb0821 100644 --- a/src/modules/base/service/sys/param.ts +++ b/src/modules/base/service/sys/param.ts @@ -52,7 +52,6 @@ export class BaseSysParamService extends BaseService { let html = '@content'; let result: any = await this.cacheManager.get(`param:${key}`); if (result) { - result = JSON.parse(result); html = html.replace('@content', result.data); } else { html = html.replace('@content', 'key notfound'); diff --git a/src/modules/user/config.ts b/src/modules/user/config.ts index 2c2a30d..6e0946b 100644 --- a/src/modules/user/config.ts +++ b/src/modules/user/config.ts @@ -16,12 +16,8 @@ export default () => { globalMiddlewares: [UserMiddleware], // 模块加载顺序,默认为0,值越大越优先加载 order: 0, - // 阿里云短信 + // 短信 sms: { - signName: '', - templateCode: ' ', - accessKeyId: '', - accessKeySecret: '', // 验证码有效期,单位秒 timeout: 60 * 3, },