he2802 2 年之前
父节点
当前提交
a18d57ae7e

+ 4 - 1
zhongzheng-admin/src/main/java/com/zhongzheng/controller/common/CommonController.java

@@ -98,6 +98,8 @@ import org.springframework.web.multipart.MultipartFile;
 
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpServletResponse;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
 import java.util.ArrayList;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashMap;
 import java.util.List;
 import java.util.List;
@@ -746,7 +748,7 @@ public class CommonController extends BaseController {
     @PreAuthorize("@ss.hasPermi('system:withdrawal:add')")
     @PreAuthorize("@ss.hasPermi('system:withdrawal:add')")
     @Log(title = "测试获取山东题库", businessType = BusinessType.INSERT)
     @Log(title = "测试获取山东题库", businessType = BusinessType.INSERT)
     @GetMapping("/common/free/getShanDongExam")
     @GetMapping("/common/free/getShanDongExam")
-    public AjaxResult getShanDongExam(GoodsQueryBo bo) {
+    public AjaxResult getShanDongExam(GoodsQueryBo bo) throws UnsupportedEncodingException {
         System.out.println(dataSign(bo.getBuyNote(), "ca7c349b-52f2-4751-81ea-c86036e2b4e9"));
         System.out.println(dataSign(bo.getBuyNote(), "ca7c349b-52f2-4751-81ea-c86036e2b4e9"));
         return AjaxResult.success();
         return AjaxResult.success();
     }
     }
@@ -754,6 +756,7 @@ public class CommonController extends BaseController {
         String TempPKey;
         String TempPKey;
         TempPKey = ToolsUtils.EncoderByMd5(PKey);
         TempPKey = ToolsUtils.EncoderByMd5(PKey);
         TempPKey = SourceMsg + TempPKey;
         TempPKey = SourceMsg + TempPKey;
+        System.out.println(TempPKey);
         TempPKey = ToolsUtils.EncoderByMd5(TempPKey);
         TempPKey = ToolsUtils.EncoderByMd5(TempPKey);
         return TempPKey;
         return TempPKey;
     }
     }