Commit ed8178ad authored by 姜登's avatar 姜登

短信

parent 365b84c9
Pipeline #6975 passed with stage
in 2 seconds
...@@ -3,6 +3,6 @@ module.exports = app => { ...@@ -3,6 +3,6 @@ module.exports = app => {
app.beforeStart(async () => { app.beforeStart(async () => {
const ctx = app.createAnonymousContext(); const ctx = app.createAnonymousContext();
ctx.helper.sendMsg({ message: '服务重启' }); // ctx.helper.sendMsg({ message: '服务重启' });
}); });
}; };
\ No newline at end of file
...@@ -32,7 +32,7 @@ module.exports = { ...@@ -32,7 +32,7 @@ module.exports = {
this.body = { code: -1, msg: '请求参数有误' }; this.body = { code: -1, msg: '请求参数有误' };
return; return;
} }
if (!/token/.test(err.message)) { if (!/token|appKey/.test(err.message)) {
if (/[a-zA-Z]+/.test(err.message)) { if (/[a-zA-Z]+/.test(err.message)) {
this.body = { code: err.code || -1, msg: '系统错误, 请稍后再试' }; this.body = { code: err.code || -1, msg: '系统错误, 请稍后再试' };
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment