Commit 3ef98885 authored by Hsinli's avatar Hsinli

addd

parent 20d975ea
Pipeline #8871 passed with stage
in 5 seconds
......@@ -13,7 +13,7 @@ class AnswerController extends Controller {
const rule = {
answer: { type: 'string', required: true },
question_id: { type: 'integer', required: true },
city_code: { type: 'string', required: true },
city_code: { type: 'integer', required: true },
};
ctx.validate(rule, inputParams);
if (inputParams.answer.length > 500) {
......
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