Commit a404dcef authored by 姜登's avatar 姜登

gjjh5

parent 97f70541
Pipeline #3881 passed with stage
in 2 seconds
...@@ -31,7 +31,7 @@ class TaskService extends Service { ...@@ -31,7 +31,7 @@ class TaskService extends Service {
this.ctx.throw(result.status, errorMsg); this.ctx.throw(result.status, errorMsg);
} }
if (result.data.code !== 0) { if (result.data.code !== 0) {
this.ctx.throw(400, { message: result.data.msg || result.data.img, code: result.data.code }); this.ctx.throw(400, { message: result.data.msg || result.data.data.img, code: result.data.code || -1 });
} }
} }
async create(data) { async create(data) {
......
...@@ -4,6 +4,11 @@ module.exports = () => { ...@@ -4,6 +4,11 @@ module.exports = () => {
const config = exports = {}; const config = exports = {};
config.debug = true; config.debug = true;
config.logger = {
dir: '/jianbing/logs/gjjh5',
};
// config.redis = { // config.redis = {
// client: { // client: {
// port: 6379, // port: 6379,
......
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