Browse Source

支付功能

Administrator 2 years ago
parent
commit
a7e07e7a6a
1 changed files with 2 additions and 2 deletions
  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 {
         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();
             WechatUnifiedOrder w = new WechatUnifiedOrder();
             w.setAppid(WeiXinUtil.appid_c);
             w.setAppid(WeiXinUtil.appid_c);