diff --git a/src/api_s2c/kuangdong/ApiYanShi.ts b/src/api_s2c/kuangdong/ApiYanShi.ts index b19effd..16a8736 100644 --- a/src/api_s2c/kuangdong/ApiYanShi.ts +++ b/src/api_s2c/kuangdong/ApiYanShi.ts @@ -5,7 +5,14 @@ import {ReqYanShi, ResYanShi} from "../../shared/protocols/kuangdong/PtlYanShi"; export default async function (call: ApiCall) { let hdid = call.req.hdid - let kdInfo = await KuangDongfun.getKaiCaiInfo(hdid) + let con = await KuangDongfun.getCon(hdid) + + let kdInfo + if (con.public_map == 1){ + kdInfo = await KuangDongfun.getKaiCaiInfo(hdid) + }else { + kdInfo = await KuangDongfun.getKaiCaiInfo(hdid, call.uid) + } if (!kdInfo) { return call.error('', {code: -1, message: globalThis.lng.kudangdong_1})