灵动sdk接入

master
zhangshanxue 2020-07-26 23:28:34 +08:00
parent 359bff3de9
commit 04779e01c1
1 changed files with 7 additions and 1 deletions

View File

@ -74,11 +74,12 @@ public class MHTRechargeController {
String sign = parameterMap.get("sign");
String temp = "consumerid" + "=" + consumerid + "&" +
"ext" + "=" + ext;
String stringBuilder = "gameCurrency" + "=" + gameCurrency + "&" +
String stringBuilder = "ext" + "=" + ext + "&" +
"mhtOrderAmt" + "=" + mhtOrderAmt + "&" +
"orderDetail" + "=" + orderDetail + "&" +
"orderNo" + "=" + orderNo + "&" +
"time" + "=" + time;
LOGGER.info("stringBuilder"+stringBuilder);
LOGGER.info("temp"+temp);
String plain = stringBuilder + MD5Util.encrypByMd5(MHTSDKConstans.secretKey);
@ -189,5 +190,10 @@ public class MHTRechargeController {
public static void main(String[] args) throws IllegalAccessException, UnsupportedEncodingException {
String plain = "ext=1&mhtOrderAmt=6.0&orderDetail=充值60妖晶&orderNo=2007181544511284393682891440128&time=1595071670196" + MD5Util.encrypByMd5(MHTSDKConstans.secretKey);
System.out.println("plain = " + plain);
String sig = MD5Util.encrypByMd5(plain);
System.out.println("sig = " + sig);
}
}