import cloud from '@lafjs/cloud' const db = cloud.database(); import Utils from "@/Utils"; export default async function (ctx: FunctionContext) { const address = ctx.body.address || "河南"; const res3 = await db.collection("sRank").where({ name: address }).getOne(); // if(!res3.data?.totoal){ // console.log("获取排行榜失败:"+address); // console.log(res3.data); // } return { code: 1, data: res3.data?.totoal || [], msg: "ok" } }