| | |
| | | |
| | | System.err.println("启动游戏支付"); |
| | | if (type == 1) { |
| | | |
| | | tGameRecord.setMoney(config.getCash()); |
| | | gameRecordService.updateById(tGameRecord); |
| | | if(config.getCash().compareTo(BigDecimal.ZERO)==0){ |
| | | // 零元不获取支付 |
| | | tGameRecord.setStatus(1); |
| | | gameRecordService.updateById(tGameRecord); |
| | | startGame(uid, gameType, gameId, spaceId, sutuId); |
| | | return ResultUtil.success(); |
| | | } |
| | | String params = uid + "_" + gameId + "_" + spaceId + "_" + sutuId+"_"+code+"_"+configId + "_" + gameType; |
| | | // ResultUtil weixinpay = payMoneyUtil.weixinpay("游戏支付-"+isFenZhang, params, code, config.getCash().toString(), |
| | | // "/base/game/wechatPaymentGameCallback", "APP", ""); |
| | |
| | | } else if (type == 2) { |
| | | tGameRecord.setMoney(config.getCash()); |
| | | gameRecordService.updateById(tGameRecord); |
| | | if(config.getCash().compareTo(BigDecimal.ZERO)==0){ |
| | | // 零元不获取支付 |
| | | tGameRecord.setStatus(1); |
| | | gameRecordService.updateById(tGameRecord); |
| | | startGame(uid, gameType, gameId, spaceId, sutuId); |
| | | return ResultUtil.success(); |
| | | } |
| | | String smid1=""; |
| | | String params = uid + "_" + gameId + "_" + spaceId + "_" + sutuId+"_"+code+"_"+ configId + "_" + gameType; |
| | | // 判断属于哪个运营商 根据运营商 id 获取对应的商户号 |
| | |
| | | map.put("space_id", spaceId + ""); |
| | | map.put("red_sutu_id", game.getRed()); |
| | | map.put("blue_sutu_id", game.getBlue()); |
| | | map.put("api_url", "https://online.daowepark.com:443/communityWorldCup/base/worldCup/endWorldCupCallback"); |
| | | map.put("api_url", "http://8.137.22.229:56666/communityWorldCup/base/worldCup/endWorldCupCallback"); |
| | | map.put("custom", "{\"gameType\": 2}"); |
| | | |
| | | String s = HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/quickStart", map); |