master
jiahuiwen 2021-11-24 18:50:19 +08:00
parent 53135ef72f
commit 818b415257
1 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ public class KTGameRechargeController {
LOGGER.info("callback==>userAddress={} openId={} uid={}", userAddress, openid, cUserInfo.getId());
return "FAIL";
}
// gameExtArr: userid_goodsid_ccid_platform
String[] gameExtArr = gameExt.split("_");
DateFormat dateTimeformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String date = dateTimeformat.format(new Date());
@ -138,7 +139,7 @@ public class KTGameRechargeController {
String serviceKey = JsonUtil.getServiceKey(ServiceKey.RPCCore, ip, port);
try {
rPCClient = ClientAdapterPo.getClientAdapterPo(serviceKey);
result = rPCClient.getClient().deliveryRecharge(cUserInfo.getId(), gameExtArr[0], openid, myOrderNo, Long.parseLong(tm) * 1000, (int) (Float.parseFloat(amt) * 100));
result = rPCClient.getClient().deliveryRecharge(cUserInfo.getId(), gameExtArr[1], openid, myOrderNo, Long.parseLong(tm) * 1000, (int) (Float.parseFloat(amt) * 100));
} catch (Exception e) {
LOGGER.info("callback=>", e);
return "FAIL";