|
@@ -1,4 +1,5 @@
|
|
|
import { Injectable, Logger } from '@nestjs/common';
|
|
|
+import { ConfigService } from '@nestjs/config';
|
|
|
import { CacheService } from 'src/cache/cache.service';
|
|
|
// import { SceneService } from 'src/scene/scene.service';
|
|
|
|
|
@@ -24,7 +25,8 @@ const seqExeAsyncFn = (asyncFn) => {
|
|
|
export class RotateService {
|
|
|
constructor(
|
|
|
private cacheService: CacheService, // private sceneService: SceneService,
|
|
|
- ) {}
|
|
|
+ private configService: ConfigService,
|
|
|
+ ) { }
|
|
|
private actionRequestPool = {};
|
|
|
private logger: Logger = new Logger('rotateService');
|
|
|
private Actions = {
|
|
@@ -68,9 +70,8 @@ export class RotateService {
|
|
|
|
|
|
user.appId = app_id;
|
|
|
user.userId = userId;
|
|
|
- user.breakPointId = 93;
|
|
|
+ user.breakPointId = this.configService.get('app.startPoint') || 0;
|
|
|
this.users[userId] = user;
|
|
|
-
|
|
|
const reply = {
|
|
|
traceIds: [],
|
|
|
vehicle: null,
|