From b507cb7b7144affd1c441722f997163e892493f6 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Tue, 16 Mar 2021 16:17:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=A7=98=E9=92=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/MHTGnWebRechargeController.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/jmfy/controller/MHTGnWebRechargeController.java b/src/main/java/com/jmfy/controller/MHTGnWebRechargeController.java index 2511cfb..8170a9e 100644 --- a/src/main/java/com/jmfy/controller/MHTGnWebRechargeController.java +++ b/src/main/java/com/jmfy/controller/MHTGnWebRechargeController.java @@ -38,17 +38,17 @@ public class MHTGnWebRechargeController { @RequestMapping(value = "/Web/MHTGnCallback") public String MHTGnCallback(HttpServletRequest request) throws Exception { - return process(request,"dbda1c460fb2273f061d9123ee39dae"); + return process(request,"bdbda1c460fb2273f061d9123ee39dae"); } @RequestMapping(value = "/Web/MHTGnIosCallback") public String MHTGnIosCallback(HttpServletRequest request) throws Exception { - return process(request,"dbda1c460fb2273f061d9123ee39dae"); + return process(request,"bdbda1c460fb2273f061d9123ee39dae"); } @RequestMapping(value = "/Web/MHTGnTestCallback") public String MHTGnTestCallback(HttpServletRequest request) throws Exception { - return process(request,"dbda1c460fb2273f061d9123ee39dae"); + return process(request,"bdbda1c460fb2273f061d9123ee39dae"); } @@ -210,11 +210,11 @@ public class MHTGnWebRechargeController { // mhtGnWebRechargeRequestBean.setTime("1615876722"); // mhtGnWebRechargeRequestBean.setSign("08cb75d5b2a4c743c80e7f2b2619214a"); // String en = getMySign(mhtGnWebRechargeRequestBean, "eb4287c41d8318c140334da7588e4159"); - String enep = "consumerid=2&consumername=300妖晶&orderNo=21031614371371712089483120640&orderDetail=充值300妖晶&gameCurrency=152.0&mhtOrderAmt=400&time=1615876722"; - String md = MD5Util.encrypByMd5("dbda1c460fb2273f061d9123ee39dae"); - System.out.println("参数拼接:"+enep); + String enep = "consumerid=2&consumername=300妖晶&gameCurrency=152.0&mhtOrderAmt=400&orderDetail=充值300妖晶&orderNo=21031614371371712089483120640&time=1615877506"; +// System.out.println("参数拼接:"+enep); +// System.out.println("最终sign:"+MD5Util.encrypByMd5(enep+md)); + String md = MD5Util.encrypByMd5("bdbda1c460fb2273f061d9123ee39dae"); System.out.println("秘钥加密后:"+md); - System.out.println("最终sign:"+MD5Util.encrypByMd5(enep+md)); }