generated from root/miduo_server
double转int
parent
31018fc7ee
commit
1a8d0a1cc1
|
@ -139,10 +139,8 @@ public class QuickRechargeController {
|
||||||
LOGGER.info("serviceKey : " + serviceKey);
|
LOGGER.info("serviceKey : " + serviceKey);
|
||||||
try {
|
try {
|
||||||
rPCClient = ClientAdapterPo.getClientAdapterPo(serviceKey);
|
rPCClient = ClientAdapterPo.getClientAdapterPo(serviceKey);
|
||||||
long amlong = Long.parseLong(amount);
|
double amdouble = Double.parseDouble(amount);
|
||||||
int amint = (int)amlong;
|
result = rPCClient.getClient().deliveryRecharge(cUserInfo.getId(), goodid, uid, orderNo, 0, (int)amdouble);
|
||||||
LOGGER.info("amount:{}",amint);
|
|
||||||
result = rPCClient.getClient().deliveryRecharge(cUserInfo.getId(), goodid, uid, orderNo, 0, amint);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOGGER.info("callback=>", e);
|
LOGGER.info("callback=>", e);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue