Commit a1ce6c30 authored by 姜登's avatar 姜登

gjj

parent 5ed16c60
Pipeline #6773 passed with stage
in 4 seconds
...@@ -32,10 +32,12 @@ module.exports = { ...@@ -32,10 +32,12 @@ module.exports = {
this.body = { code: -1, msg: '请求参数有误' }; this.body = { code: -1, msg: '请求参数有误' };
return; return;
} }
if (!/token/.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;
} }
}
this.body = { code: err.code || -1, msg: err.message || '' }; this.body = { code: err.code || -1, msg: err.message || '' };
}, },
......
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