|
@@ -28,12 +28,9 @@ export class GetRouterService implements OnModuleInit {
|
|
|
|
|
|
async loadJSON(path) {
|
|
|
try {
|
|
|
- // const path = join(__dirname, '../ws/points-BreakPointId.json');
|
|
|
- // const path = join(__dirname, '../ws/demo1.json');
|
|
|
const data = await readFileSync(path);
|
|
|
const BreakPointInfo = JSON.parse(Buffer.from(data).toString('utf-8'));
|
|
|
this.breakPointInfo = BreakPointInfo;
|
|
|
-
|
|
|
// console.log('BreakPointInfo', BreakPointInfo);
|
|
|
} catch (error) {
|
|
|
this.logger.error('load-json-error', error);
|