Administrator hace 2 años
padre
commit
a7e07e7a6a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      mhotel/src/com/happy/action/AppBookingAction.java

+ 2 - 2
mhotel/src/com/happy/action/AppBookingAction.java

@@ -608,8 +608,8 @@ public class AppBookingAction extends ActionSupport implements ServletRequestAwa
 
         try {
             // 支付费用
-            int totalPrice = (int) booking.getHouseTotalPrice();
-            int totalfee = (int) (totalPrice * 100);
+            Double totalPrice = booking.getHouseTotalPrice() * 100;
+            int totalfee = Func.parseInt(totalPrice);
 
             WechatUnifiedOrder w = new WechatUnifiedOrder();
             w.setAppid(WeiXinUtil.appid_c);