Browse Source

修改观看浏览量

zs 1 month ago
parent
commit
670d2822a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/controller/platform/achievement.controller.ts

+ 2 - 2
src/controller/platform/achievement.controller.ts

@@ -36,8 +36,6 @@ export class AchievementController implements BaseController {
   async fetch(@Param('id') id: number) {
   async fetch(@Param('id') id: number) {
     const data = await this.service.fetch({ id });
     const data = await this.service.fetch({ id });
     const result = new FVO_achievement(data);
     const result = new FVO_achievement(data);
-    // 加浏览量
-    await this.service.fetchBrowse(data);
     return result;
     return result;
   }
   }
 
 
@@ -88,6 +86,8 @@ export class AchievementController implements BaseController {
     let data = await this.service.fetch({ id });
     let data = await this.service.fetch({ id });
     data = await this.serviceUtil.fillOnwer(data);
     data = await this.serviceUtil.fillOnwer(data);
     data = await this.serviceUtil.fillCollection(data, 'achievement');
     data = await this.serviceUtil.fillCollection(data, 'achievement');
+    // 加浏览量
+    await this.service.fetchBrowse(data);
     return data;
     return data;
   }
   }
 }
 }