Commit 0089c67e authored by 何娜's avatar 何娜

taxh5 优化错误提示

parent 485f31b1
Pipeline #10581 passed with stage
in 4 seconds
...@@ -155,6 +155,11 @@ class TaskController extends Controller { ...@@ -155,6 +155,11 @@ class TaskController extends Controller {
status: 'failure', status: 'failure',
note: {message: err.message}, note: {message: err.message},
}; };
if (!/token|appKey/.test(err.message)) {
if (/[a-zA-Z]+/.test(err.message)) {
taskNote.note = '系统错误, 请稍后再试';
}
}
} }
break; break;
default: default:
......
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