generated from root/miduo_server
订单页面报错
parent
c2c8bf2597
commit
511336fdc0
|
|
@ -87,10 +87,14 @@ public class OrderInfoController {
|
|||
}
|
||||
String amount = cgPayOrder.getAmount();
|
||||
double amountDouble;
|
||||
if(!amount.contains(".")){
|
||||
amountDouble = Integer.parseInt(amount)/100D;
|
||||
} else{
|
||||
amountDouble = Double.parseDouble(amount);
|
||||
if(amount==null){
|
||||
amountDouble = 0d;
|
||||
}else{
|
||||
if(!amount.contains(".")){
|
||||
amountDouble = Integer.parseInt(amount)/100D;
|
||||
} else{
|
||||
amountDouble = Double.parseDouble(amount);
|
||||
}
|
||||
}
|
||||
Corder corder = new Corder();
|
||||
corder.setAccountid(accountid);
|
||||
|
|
|
|||
Loading…
Reference in New Issue