支付秘钥修改

master
lvxinran 2021-03-16 16:17:19 +08:00
parent b581c27260
commit b507cb7b71
1 changed files with 7 additions and 7 deletions

View File

@ -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));
}