long转int

master
mengchengzhen 2021-06-29 10:44:06 +08:00
parent 468a3cebad
commit 31018fc7ee
1 changed files with 3 additions and 1 deletions

View File

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