generated from root/miduo_server
添加字段
parent
ffc9c92c6e
commit
567b6e46f0
|
@ -126,7 +126,10 @@ public class MHTGnWebRechargeController {
|
||||||
if ("sign".equals(field.getName())) {
|
if ("sign".equals(field.getName())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
tempMap.put(field.getName(), field.get(rechargeRequestBean).toString());
|
Object value = field.get(rechargeRequestBean);
|
||||||
|
if(value!=null){
|
||||||
|
tempMap.put(field.getName(), value.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (Map.Entry<String, String> item : tempMap.entrySet()) {
|
for (Map.Entry<String, String> item : tempMap.entrySet()) {
|
||||||
String value = item.getValue();
|
String value = item.getValue();
|
||||||
|
@ -141,4 +144,10 @@ public class MHTGnWebRechargeController {
|
||||||
return MD5Util.encrypByMd5(plain);
|
return MD5Util.encrypByMd5(plain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
String s = MD5Util.encrypByMd5("consumerid=10007120_1_1006_IOS&consumername=10007120_1_1006_IOS&deviceId=A0EF50B7-3C5E-4A37-B146-7975F9D01BC1&gameCurrency=0.0&mhtOrderAmt=600.0&orderDetail=充值60妖晶&orderNo=202107161120021415873833897824256&time=1626405639322ce38b4d5189b19b14760011424d46");
|
||||||
|
System.out.println(MD5Util.encrypByMd5("7aeaa683b580cb6b807697b998856398"));
|
||||||
|
System.out.println(s);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ public class MHTGnWebRechargeRequestBean {
|
||||||
private String gameCurrency;//充值游戏币数量
|
private String gameCurrency;//充值游戏币数量
|
||||||
private String time;//平台支付时间
|
private String time;//平台支付时间
|
||||||
private String sign;
|
private String sign;
|
||||||
|
private String deviceId;
|
||||||
|
|
||||||
public String getConsumerid() {
|
public String getConsumerid() {
|
||||||
return consumerid;
|
return consumerid;
|
||||||
|
@ -79,4 +80,12 @@ public class MHTGnWebRechargeRequestBean {
|
||||||
public void setSign(String sign) {
|
public void setSign(String sign) {
|
||||||
this.sign = sign;
|
this.sign = sign;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDeviceId() {
|
||||||
|
return deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceId(String deviceId) {
|
||||||
|
this.deviceId = deviceId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue