添加日志

master
jiahuiwen 2021-10-27 14:02:12 +08:00
parent f2e36a79ab
commit 5272dc8c01
2 changed files with 3 additions and 1 deletions

View File

@ -112,10 +112,11 @@ public class HaoGameRechargeController {
@RequestMapping(value = "/haoGameCallback") @RequestMapping(value = "/haoGameCallback")
public String haoGameCallback(HttpServletRequest request, @RequestBody HaoGameParam haoGamePram) throws Exception { public String haoGameCallback(HttpServletRequest request, @RequestBody HaoGameParam haoGamePram) throws Exception {
LOGGER.info("haoGameCallback 收到好游戏支付回调");
HashMap<String, String> parameterMap = JsonUtil.getInstence().getParameterMapYX(request); HashMap<String, String> parameterMap = JsonUtil.getInstence().getParameterMapYX(request);
if (parameterMap.isEmpty()) { if (parameterMap.isEmpty()) {
LOGGER.info("data is null"); LOGGER.info("data is null");
return "data is null"; return "failure";
} }
LOGGER.info("haoGameCallback parameterMap getOuttradeno={} getTradeno={} getAmount={} getExtra={} getOpenid={} ", LOGGER.info("haoGameCallback parameterMap getOuttradeno={} getTradeno={} getAmount={} getExtra={} getOpenid={} ",
haoGamePram.getOuttradeno(), haoGamePram.getTradeno(), haoGamePram.getAmount(), haoGamePram.getOuttradeno(), haoGamePram.getTradeno(), haoGamePram.getAmount(),

View File

@ -76,6 +76,7 @@ public class JsonUtil {
JSONObject data = new JSONObject(paramName); JSONObject data = new JSONObject(paramName);
Set<String> strings = data.keySet(); Set<String> strings = data.keySet();
for (String string : strings) { for (String string : strings) {
LOGGER.info("getParameterMapYX param {}", string);
string = string.replace("{", ""); string = string.replace("{", "");
string = string.replace("}", ""); string = string.replace("}", "");
string = string.replace("extra\":", ""); string = string.replace("extra\":", "");