mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-19 12:20:30 +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 html = '<html><body>@content</body></html>';
|
||||||
let result: any = await this.cacheManager.get(`param:${key}`);
|
let result: any = await this.cacheManager.get(`param:${key}`);
|
||||||
if (result) {
|
if (result) {
|
||||||
result = JSON.parse(result);
|
|
||||||
html = html.replace('@content', result.data);
|
html = html.replace('@content', result.data);
|
||||||
} else {
|
} else {
|
||||||
html = html.replace('@content', 'key notfound');
|
html = html.replace('@content', 'key notfound');
|
||||||
|
|||||||
@ -16,12 +16,8 @@ export default () => {
|
|||||||
globalMiddlewares: [UserMiddleware],
|
globalMiddlewares: [UserMiddleware],
|
||||||
// 模块加载顺序,默认为0,值越大越优先加载
|
// 模块加载顺序,默认为0,值越大越优先加载
|
||||||
order: 0,
|
order: 0,
|
||||||
// 阿里云短信
|
// 短信
|
||||||
sms: {
|
sms: {
|
||||||
signName: '',
|
|
||||||
templateCode: ' ',
|
|
||||||
accessKeyId: '',
|
|
||||||
accessKeySecret: '',
|
|
||||||
// 验证码有效期,单位秒
|
// 验证码有效期,单位秒
|
||||||
timeout: 60 * 3,
|
timeout: 60 * 3,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user