generated from root/miduo_server
recharge
parent
38830b0670
commit
92ca12ea3d
|
@ -34,7 +34,7 @@ public class RechargeController {
|
||||||
String orderTime = parameterMap.get("orderTime");
|
String orderTime = parameterMap.get("orderTime");
|
||||||
String sign = parameterMap.get("sign");
|
String sign = parameterMap.get("sign");
|
||||||
String roleUid = parameterMap.get("roleUid");
|
String roleUid = parameterMap.get("roleUid");
|
||||||
String sig = MD5Util.encrypByMd5(orderId+userId+productID+userId+amount+orderTime+roleUid+ KTSDKConstans.appkey);
|
String sig = MD5Util.encrypByMd5(orderId+userId+productID+amount+orderTime+roleUid+ KTSDKConstans.appkey);
|
||||||
|
|
||||||
if (!sig.equals(sign)){
|
if (!sig.equals(sign)){
|
||||||
LOGGER.info("callback==>roleUid={},sin derify fail ",roleUid);
|
LOGGER.info("callback==>roleUid={},sin derify fail ",roleUid);
|
||||||
|
@ -98,14 +98,15 @@ public class RechargeController {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String orderId = "123";
|
String orderId = "-1882186820";
|
||||||
String userId ="wy2588320";
|
String userId ="123151339.sujie";
|
||||||
String productID = "1";
|
String productID = "8";
|
||||||
int amount = 100;
|
int amount = 60;
|
||||||
|
|
||||||
String orderTime = "" + System.currentTimeMillis();
|
String orderTime = "1562139874";
|
||||||
String roleUid ="10005403";
|
String roleUid ="10029692";
|
||||||
String sig = MD5Util.encrypByMd5(orderId+userId+productID+userId+amount+orderTime+roleUid+ KTSDKConstans.appkey);
|
String sig = MD5Util.encrypByMd5(orderId+userId+productID+amount+orderTime+roleUid+ KTSDKConstans.appkey);
|
||||||
|
System.out.println(sig);
|
||||||
System.out.println(sig);
|
System.out.println(sig);
|
||||||
StringBuilder stringBuilder = new StringBuilder();
|
StringBuilder stringBuilder = new StringBuilder();
|
||||||
stringBuilder.append("orderId=").append(orderId).append("&");
|
stringBuilder.append("orderId=").append(orderId).append("&");
|
||||||
|
|
Loading…
Reference in New Issue