强转int

master
lvxinran 2021-06-30 16:42:06 +08:00
parent 109b866547
commit a42c363e0c
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class QuickRechargeController {
String orderNo = map.get("order_no");
String amount = map.get("amount");
//quick的是元 要处理一下
String amountForward = String.valueOf(Double.parseDouble(amount) * 100);
String amountForward = String.valueOf((int)Double.parseDouble(amount) * 100);
return payLogic.initOrder(callbackInfo,orderNo,amountForward,new Date(System.currentTimeMillis()),callback[0],PaySdkEnum.QUICK);
}