gemercheung 3 anni fa
parent
commit
752b81c5c9

+ 5 - 0
src/get-router/get-router.service.ts

@@ -158,9 +158,14 @@ export class GetRouterService implements OnModuleInit {
       } while (
         //currentObj.position.x != startPoint.position.x ||
         //currentObj.position.y != startPoint.position.y
+        result.length < 50 &&
         currentObj.contact.indexOf(startPointId) < 0
       );
     }
+    if(result.length >50){
+      console.log('错误过渡路径:' + result);
+      debugger;
+    }
     result.unshift(currentObj.breakPointId);
     result.unshift(startPointId);
     console.log('过渡路径:' + result);

+ 1 - 1
src/rotate/rotate.service.ts

@@ -452,7 +452,7 @@ export class RotateService {
         reply.breakPointId = user.breakPointId;
         return reply;
       } else {
-        this.logger.error('echo返回null');
+        this.logger.error('echo返回null', key);
         return {};
       }
     }

+ 4 - 4
src/scene/stream/stream.service.ts

@@ -95,11 +95,11 @@ export class StreamService {
     return new Promise((resolve, reject) => {
       try {
         // console.log('process.env', process.env.node_env);
-        // const src = stream.clipPath.replace('/mnt/metaverse/scene', '');
-        // const srcTmp = join(__dirname, `../ws/${src}`);
-        // const clipPath = srcTmp;
+        const src = stream.clipPath.replace('/mnt/metaverse/scene', '');
+        const srcTmp = join(__dirname, `../ws/${src}`);
+        const clipPath = srcTmp;
 
-        const clipPath = stream.clipPath;
+        // const clipPath = stream.clipPath;
         const metaData = stream.metaData || '{}';
         const frame = stream.frame;
         const serverTime = stream.serverTime || 754871824;