Jelajahi Sumber

Merge remote-tracking branch 'origin/master'

raojiaolong@163.com 2 tahun lalu
induk
melakukan
21d405482c
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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);