fix: 模型位置更改

This commit is contained in:
wangzhongjie 2025-10-23 09:09:07 +08:00
parent 71d803a242
commit e0c4ea26ca
3 changed files with 9 additions and 9 deletions

View File

@ -24,7 +24,7 @@ export const JudgeConfig: JudgeConfigType = {
//轨迹回放是否开启Udp //轨迹回放是否开启Udp
udpOpen: true, udpOpen: true,
// 本地模型地址 // 本地模型地址
modelPath: 'models/model_enc', modelPath: 'models/',
// 济南科目三 // 济南科目三
trajectoryPath: 'logs/2025_08_22/2025_08_22_17_09_49_9999245520855_654211778346526080_杜兰曼/judge_exam_data.txt', trajectoryPath: 'logs/2025_08_22/2025_08_22_17_09_49_9999245520855_654211778346526080_杜兰曼/judge_exam_data.txt',
//四合一画面配置 //四合一画面配置

View File

@ -408,7 +408,7 @@ export class LargeJudge extends BaseJudge implements BaseJudgeImpl {
if (examSubject == '2' && itemInfoObj) { if (examSubject == '2' && itemInfoObj) {
const promiseItems = Reflect.ownKeys(itemInfoObj).map(async cdsbKey => { const promiseItems = Reflect.ownKeys(itemInfoObj).map(async cdsbKey => {
const cdsb: CDSBInfo = Reflect.get(itemInfoObj, cdsbKey); const cdsb: CDSBInfo = Reflect.get(itemInfoObj, cdsbKey);
const model = await GetModelData(`${examType}/${cdsb.modelKey}.txt`, context); const model = await GetModelData(`/${cdsb.modelKey}.txt`, context);
const temp: ItemInfo = { const temp: ItemInfo = {
xmdm: cdsb?.xmdm || 0, xmdm: cdsb?.xmdm || 0,
xmxh: cdsb?.xmxh || "", xmxh: cdsb?.xmxh || "",
@ -434,7 +434,7 @@ export class LargeJudge extends BaseJudge implements BaseJudgeImpl {
kscx: carType, kscx: carType,
cxcode: '1', cxcode: '1',
name: carName, name: carName,
carmodel: await GetModelData(`${examType}/${carType}.txt`, context) || "", carmodel: await GetModelData(`/${carType}.txt`, context) || "",
allitems, allitems,
iteminfo: [], iteminfo: [],
systemparm: systemparmArr, systemparm: systemparmArr,
@ -451,8 +451,8 @@ export class LargeJudge extends BaseJudge implements BaseJudgeImpl {
map_point_item: mapPointItemArr, map_point_item: mapPointItemArr,
//科目三暂时为空 //科目三暂时为空
iteminfo: [], iteminfo: [],
roads: await GetModelData('km3/Roads.txt', context) || "", roads: await GetModelData('/Roads.txt', context) || "",
sharps: await GetModelData('km3/Sharps.txt', context) || "" sharps: await GetModelData('/Sharps.txt', context) || ""
}; };
initInfo.map_point = km3Config.map_point initInfo.map_point = km3Config.map_point
initInfo.map_point_item = km3Config.map_point_item initInfo.map_point_item = km3Config.map_point_item

View File

@ -105,7 +105,7 @@ export class SmallJudge extends BaseJudge implements BaseJudgeImpl {
const promiseItems = Reflect.ownKeys(itemInfoObj).map(async cdsbKey => { const promiseItems = Reflect.ownKeys(itemInfoObj).map(async cdsbKey => {
// const cdsb: CDSBInfo = Reflect.get(itemInfoObj, cdsbKey); // const cdsb: CDSBInfo = Reflect.get(itemInfoObj, cdsbKey);
const cdsb: CDSBInfo = Object.entries(itemInfoObj).find((arr: Array<string>) => arr[0] === cdsbKey)![1]; const cdsb: CDSBInfo = Object.entries(itemInfoObj).find((arr: Array<string>) => arr[0] === cdsbKey)![1];
const model = await GetModelData(`${examType}/${cdsb.modelKey}.txt`, context); const model = await GetModelData(`/${cdsb.modelKey}.txt`, context);
const temp: ItemInfo = { const temp: ItemInfo = {
xmdm: cdsb?.xmdm || 0, xmdm: cdsb?.xmdm || 0,
xmxh: cdsb?.xmxh || "", xmxh: cdsb?.xmxh || "",
@ -132,7 +132,7 @@ export class SmallJudge extends BaseJudge implements BaseJudgeImpl {
kscx: carType, kscx: carType,
cxcode: '1', cxcode: '1',
name: carName, name: carName,
carmodel: await GetModelData(`${examType}/${carType}.txt`, context) || "", carmodel: await GetModelData(`/${carType}.txt`, context) || "",
allitems, allitems,
iteminfo: [], iteminfo: [],
systemparm: systemparmArr, systemparm: systemparmArr,
@ -149,8 +149,8 @@ export class SmallJudge extends BaseJudge implements BaseJudgeImpl {
map_point_item: mapPointItemArr, map_point_item: mapPointItemArr,
//科目三暂时为空 //科目三暂时为空
iteminfo: [], iteminfo: [],
roads: await GetModelData('km3/Roads.txt', context) || "", roads: await GetModelData('/Roads.txt', context) || "",
sharps: await GetModelData('km3/Sharps.txt', context) || "" sharps: await GetModelData('/Sharps.txt', context) || ""
}; };
initInfo.map_point = km3Config.map_point initInfo.map_point = km3Config.map_point
initInfo.map_point_item = km3Config.map_point_item initInfo.map_point_item = km3Config.map_point_item