From 5e7892cd0921111dfbaf84196f2593f8045d1c11 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期四, 08 十二月 2022 13:16:54 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/haucheng_panzhihua' into haucheng_panzhihua --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java index f0cab11..15c7fbc 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java @@ -307,15 +307,7 @@ */ @GetMapping("/statistics/top") public R getTopStatistics(@RequestParam("type") Integer type, @RequestParam("userId") Long userId) { - if (type.equals(1)) { - //戳戳游戏 - return mcsGameService.getTopStatistics(userId); - } else if (type.equals(2)) { - //戳戳资讯 - return mcsInformationService.getTopStatistics(userId); - } else { - return R.fail("未知错误"); - } + return mcsGameService.getTopStatistics(userId, type); } /** -- Gitblit v1.7.1