import cloud from '@lafjs/cloud' const db = cloud.database(); import Utils from "@/Utils"; export default async function (ctx: FunctionContext) { const uid = ctx.body.uid; let db1 = "691093093cf0c4532ba4fd9c"; const gameName = ctx.body.gameName; if (gameName == "iaa") { db1 = "691097ac3cf0c4532ba4fd9e"; } let rankInfo = await db.collection("sRank").where({ _id: db1 }).getOne(); return { code: 1, data: rankInfo.data.total, msg: "成功" }; if (["69b8dba6b8203b75974cf697", "6866ac24a173b1b78d21f8c2"].includes(uid)) { console.log(rankInfo); } return { code: 1, data: [], msg: "成功" } }