double转int

master
mengchengzhen 2021-06-29 10:54:51 +08:00
parent 31018fc7ee
commit 1a8d0a1cc1
1 changed files with 2 additions and 4 deletions

View File

@ -139,10 +139,8 @@ public class QuickRechargeController {
LOGGER.info("serviceKey : " + serviceKey);
try {
rPCClient = ClientAdapterPo.getClientAdapterPo(serviceKey);
long amlong = Long.parseLong(amount);
int amint = (int)amlong;
LOGGER.info("amount:{}",amint);
result = rPCClient.getClient().deliveryRecharge(cUserInfo.getId(), goodid, uid, orderNo, 0, amint);
double amdouble = Double.parseDouble(amount);
result = rPCClient.getClient().deliveryRecharge(cUserInfo.getId(), goodid, uid, orderNo, 0, (int)amdouble);
} catch (Exception e) {
LOGGER.info("callback=>", e);
} finally {