generated from root/miduo_server
灵动sdk接入
parent
359bff3de9
commit
04779e01c1
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue