Showing
1 changed file
with
2 additions
and
0 deletions
@@ -85,6 +85,7 @@ const whSurfController = { | @@ -85,6 +85,7 @@ const whSurfController = { | ||
85 | }, | 85 | }, |
86 | 86 | ||
87 | configModify: async function(req, res) { | 87 | configModify: async function(req, res) { |
88 | + | ||
88 | try { | 89 | try { |
89 | let data = valid(req.body, { | 90 | let data = valid(req.body, { |
90 | id: {type: 'number', empty: true}, | 91 | id: {type: 'number', empty: true}, |
@@ -107,6 +108,7 @@ const whSurfController = { | @@ -107,6 +108,7 @@ const whSurfController = { | ||
107 | try_again_bg: {type: 'string', empty: true}, | 108 | try_again_bg: {type: 'string', empty: true}, |
108 | status: {type: 'number', empty: true} | 109 | status: {type: 'number', empty: true} |
109 | }); | 110 | }); |
111 | + | ||
110 | let result = await req.ctx(wheelSurfModel).configModify(data); | 112 | let result = await req.ctx(wheelSurfModel).configModify(data); |
111 | 113 | ||
112 | return res.json({ | 114 | return res.json({ |
-
Please register or login to post a comment