Skip to content

Commit

Permalink
feat(route): add record number parameter (DIYgod#11945)
Browse files Browse the repository at this point in the history
* feat(route): add record number parameter

* fix(route): use limit instead
  • Loading branch information
qizidog authored Feb 23, 2023
1 parent 70670bd commit 1cb28ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/v2/swjtu/jyzpxx.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ const got = require('@/utils/got');
const rootURL = 'https://jiuye.swjtu.edu.cn/career';

module.exports = async (ctx) => {
const limit = Math.min(ctx.query.limit ?? 10, 50);
const resp = await got({
method: 'post',
url: `${rootURL}/zpxx/search/zpxx/1/30`,
url: `${rootURL}/zpxx/search/zpxx/1/${limit}`,
});

const list = resp.data.data.list;
Expand Down

0 comments on commit 1cb28ff

Please sign in to comment.