Merge branch 'feature/xiaofeijingsai' into dev

This commit is contained in:
dy 2023-12-21 17:49:19 +08:00
commit 5bf5f59bfa
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
let _hd = (await HuoDongFun.gethdList(call, 11))[0] let _hd = (await HuoDongFun.gethdList(call, 11))[0]
if (!_hd) return call.errorCode(-1) if (!_hd) return call.errorCode(-1)
let limit = call.req.limit || 50 let limit = _hd.data?.rank?.slice(-1)?.[0]?.rank?.slice(-1)?.[0] || call.req.limit || 100
let rmbuse = await G.mongodb.collection('rmbuse').aggregate([ let rmbuse = await G.mongodb.collection('rmbuse').aggregate([
{$match: {isAdd: false, cTime: {$gte: _hd.stime, $lte: _hd.etime}}}, {$match: {isAdd: false, cTime: {$gte: _hd.stime, $lte: _hd.etime}}},

View File

@ -2,7 +2,7 @@
* *
*/ */
export type ReqOpen = { export type ReqOpen = {
limit: number limit?: number
}; };
export type ResOpen = { export type ResOpen = {