mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-07 03:48:13 +00:00
优化
This commit is contained in:
parent
94ea80aeee
commit
adf67f2c52
@ -52,7 +52,6 @@ export class BaseSysParamService extends BaseService {
|
||||
let html = '<html><body>@content</body></html>';
|
||||
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');
|
||||
|
||||
@ -16,12 +16,8 @@ export default () => {
|
||||
globalMiddlewares: [UserMiddleware],
|
||||
// 模块加载顺序,默认为0,值越大越优先加载
|
||||
order: 0,
|
||||
// 阿里云短信
|
||||
// 短信
|
||||
sms: {
|
||||
signName: '',
|
||||
templateCode: ' ',
|
||||
accessKeyId: '',
|
||||
accessKeySecret: '',
|
||||
// 验证码有效期,单位秒
|
||||
timeout: 60 * 3,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user