Commit b3d6e078 authored by 姜登's avatar 姜登

yys

parent e2bc733c
Pipeline #6777 passed with stage
in 3 seconds
......@@ -32,9 +32,11 @@ module.exports = {
this.body = { code: -1, msg: '请求参数有误' };
return;
}
if (/[a-zA-Z]+/.test(err.message)) {
this.body = { code: err.code || -1, msg: '系统错误, 请稍后再试' };
return;
if (!/token/.test(err.message)) {
if (/[a-zA-Z]+/.test(err.message)) {
this.body = { code: err.code || -1, msg: '系统错误, 请稍后再试' };
return;
}
}
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