明树Git Lab

Commit 141ac0f8 authored by zfp1's avatar zfp1

update

parent d627b9af
......@@ -3,6 +3,7 @@
async function createQuestion(req, res, next) {
try {
let body = req.body;
console.log(req.body, ":::createQuestion")
let ret = await DB.Question.create(body);
res.sendData(ret)
} catch (error) {
......@@ -17,6 +18,8 @@ async function getQuesList(req, res, next) {
let search = {
openid: req.body.openid
}
console.log(req.body, ":::getQuesList", search)
let page = req.body.page || 1;
let pageSize = req.body.pageSize || 10;
let skip = (page - 1) * pageSize;
......
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