|
|
@@ -2,6 +2,7 @@ package com.cyksj.web.controller.user;
|
|
|
|
|
|
import cn.hutool.core.date.DateTime;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import cn.hutool.core.util.URLUtil;
|
|
|
import cn.hutool.extra.servlet.ServletUtil;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.cyksj.common.annotation.NoSubmit;
|
|
|
@@ -126,6 +127,7 @@ public class UserController {
|
|
|
*/
|
|
|
@GetMapping("/get/ticket/code/detail")
|
|
|
public Result<ExchangeCodeDetailView> getTicketCodeDetail(String code) throws Exception {
|
|
|
+ code = URLUtil.decode(code);
|
|
|
ExchangeCodeDetailView exchangeCodeDetailView = beanSearcher.searchFirst(ExchangeCodeDetailView.class, MapUtils.flatBuilder(request.getParameterMap()).field(ExchangeCodeDetailView::getCode, code).build());
|
|
|
if (exchangeCodeDetailView == null) {
|
|
|
throw BusinessRuntimeException.getInstance("错误兑换码");
|