lrf402788946 пре 4 година
родитељ
комит
33e8a1f745
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/service/intercept.js

+ 2 - 1
app/service/intercept.js

@@ -55,9 +55,10 @@ class InterceptService extends CrudService {
       if (arr.length <= 2) throw new BusinessError();
       const _tenant = arr[1];
       let project = await this.redis.get('project');
-      console.log(project);
       if (!project) throw new BusinessError(ErrorCode.SERVICE_FAULT, '未设置中间层项目参数');
       project = JSON.parse(project);
+      console.log(project);
+      console.log(_tenant);
       if (!project.includes(_tenant)) throw new BusinessError();
       const obj = { ip: clientIp, create_time: moment().format('YYYY-MM-DD HH:mm:ss') };
       // 访问量的添加