generated from root/miduo_server
添加日志
parent
f2e36a79ab
commit
5272dc8c01
|
@ -112,10 +112,11 @@ public class HaoGameRechargeController {
|
|||
|
||||
@RequestMapping(value = "/haoGameCallback")
|
||||
public String haoGameCallback(HttpServletRequest request, @RequestBody HaoGameParam haoGamePram) throws Exception {
|
||||
LOGGER.info("haoGameCallback 收到好游戏支付回调");
|
||||
HashMap<String, String> parameterMap = JsonUtil.getInstence().getParameterMapYX(request);
|
||||
if (parameterMap.isEmpty()) {
|
||||
LOGGER.info("data is null");
|
||||
return "data is null";
|
||||
return "failure";
|
||||
}
|
||||
LOGGER.info("haoGameCallback parameterMap getOuttradeno={} getTradeno={} getAmount={} getExtra={} getOpenid={} ",
|
||||
haoGamePram.getOuttradeno(), haoGamePram.getTradeno(), haoGamePram.getAmount(),
|
||||
|
|
|
@ -76,6 +76,7 @@ public class JsonUtil {
|
|||
JSONObject data = new JSONObject(paramName);
|
||||
Set<String> strings = data.keySet();
|
||||
for (String string : strings) {
|
||||
LOGGER.info("getParameterMapYX param {}", string);
|
||||
string = string.replace("{", "");
|
||||
string = string.replace("}", "");
|
||||
string = string.replace("extra\":", "");
|
||||
|
|
Loading…
Reference in New Issue