This commit is contained in:
dy 2023-12-15 22:58:48 +08:00
parent 77159cc7e3
commit 64f333908d

View File

@ -5,7 +5,14 @@ import {ReqYanShi, ResYanShi} from "../../shared/protocols/kuangdong/PtlYanShi";
export default async function (call: ApiCall<ReqYanShi, ResYanShi>) {
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})