| | |
| | | */ |
| | | @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); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * 完成订单更新/新增商家信息 |
| | | * @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); |
| | | } |
| | | |
| | | /** |