Merge branch 'feature/xiaofeijingsai' into dev
This commit is contained in:
commit
5bf5f59bfa
@ -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}}},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* 消费竞赛
|
* 消费竞赛
|
||||||
*/
|
*/
|
||||||
export type ReqOpen = {
|
export type ReqOpen = {
|
||||||
limit: number
|
limit?: number
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ResOpen = {
|
export type ResOpen = {
|
||||||
|
Loading…
Reference in New Issue
Block a user