generated from root/miduo_server
参数解析修改
parent
f3b75dc163
commit
f2e36a79ab
|
@ -35,63 +35,6 @@ public class HaoGameRechargeController {
|
|||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(HaoGameRechargeController.class);
|
||||
|
||||
class Extra{
|
||||
private String platform;
|
||||
private String ccId;
|
||||
private String roleId;
|
||||
private String productId;
|
||||
private String extension;
|
||||
private String serverId;
|
||||
|
||||
public String getPlatform() {
|
||||
return platform;
|
||||
}
|
||||
|
||||
public void setPlatform(String platform) {
|
||||
this.platform = platform;
|
||||
}
|
||||
|
||||
public String getCcId() {
|
||||
return ccId;
|
||||
}
|
||||
|
||||
public void setCcId(String ccId) {
|
||||
this.ccId = ccId;
|
||||
}
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(String productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getExtension() {
|
||||
return extension;
|
||||
}
|
||||
|
||||
public void setExtension(String extension) {
|
||||
this.extension = extension;
|
||||
}
|
||||
|
||||
public String getServerId() {
|
||||
return serverId;
|
||||
}
|
||||
|
||||
public void setServerId(String serverId) {
|
||||
this.serverId = serverId;
|
||||
}
|
||||
}
|
||||
|
||||
class HaoGameParam {
|
||||
private String outtradeno;
|
||||
private String tradeno;
|
||||
|
@ -174,10 +117,9 @@ public class HaoGameRechargeController {
|
|||
LOGGER.info("data is null");
|
||||
return "data is null";
|
||||
}
|
||||
|
||||
LOGGER.info("haoGameCallback parameterMap getOuttradeno={} getTradeno={} getAmount={} getExtra={} getOpenid={} ", haoGamePram.getOuttradeno(), haoGamePram.getTradeno(), haoGamePram.getAmount(),
|
||||
LOGGER.info("haoGameCallback parameterMap getOuttradeno={} getTradeno={} getAmount={} getExtra={} getOpenid={} ",
|
||||
haoGamePram.getOuttradeno(), haoGamePram.getTradeno(), haoGamePram.getAmount(),
|
||||
haoGamePram.getExtra(), haoGamePram.getOpenid());
|
||||
|
||||
String outtradeno = parameterMap.get("outtradeno");
|
||||
String orderId = parameterMap.get("tradeno");
|
||||
String status = parameterMap.get("status");
|
||||
|
|
|
@ -76,18 +76,15 @@ public class JsonUtil {
|
|||
JSONObject data = new JSONObject(paramName);
|
||||
Set<String> strings = data.keySet();
|
||||
for (String string : strings) {
|
||||
LOGGER.info("getParameterMapYX =================> {} ", string);
|
||||
string = string.replace("{", "");
|
||||
string = string.replace("}", "");
|
||||
string = string.replace("extra\":", "");
|
||||
String[] split = string.split(",");
|
||||
for (String s : split) {
|
||||
String[] split1 = s.split(":");
|
||||
map.put(split1[0].replace("\"", ""), split1[1].replace("\"", ""));
|
||||
}
|
||||
}
|
||||
|
||||
// String serverID = data.getString("districtid");// 区服id
|
||||
// String productID = data.getString("productId");
|
||||
// String ccId = data.getString("ccId");
|
||||
// String platform = data.getString("platform");
|
||||
|
||||
String[] paramValues = request.getParameterValues(paramName);
|
||||
String paramValue = paramValues[0];
|
||||
map.put(paramName, paramValue);
|
||||
LOGGER.info("parameter : " + paramName + "=" + paramValue);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue