From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 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 8aad276..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); } /** @@ -421,16 +413,16 @@ /** * 完成订单更新/新增商家信息 - * @param merchantName + * @param orderNo * @param configId * @param userId * @return */ @GetMapping("/updateAfterOrder") - public R updateMcsMerchantAfterOrder(@RequestParam(value = "merchantName", required = false) String merchantName, + public R updateMcsMerchantAfterOrder(@RequestParam(value = "orderNo") String orderNo, @RequestParam("configId") Long configId, @RequestParam("userId") Long userId) { - return mcsMerchantService.updateOrAddMcsMerchantAfterOrder(merchantName, configId, userId); + return mcsMerchantService.updateOrAddMcsMerchantAfterOrder(orderNo, configId, userId); } /** @@ -613,4 +605,13 @@ public R getMcsProduct(@RequestParam("productId") Long productId) { return mcsProductService.getMcsProduct(productId); } + + /** + * 定时任务-每隔5分钟执行一次,将已到期的微商业街游戏结束 + * @return + */ + @GetMapping("/endStatusForMcsGame") + public R endStatusForMcsGame() { + return mcsGameService.endStatusForMcsGame(); + } } -- Gitblit v1.7.1