|
@@ -608,8 +608,8 @@ public class AppBookingAction extends ActionSupport implements ServletRequestAwa
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
// 支付费用
|
|
// 支付费用
|
|
|
- Double totalPrice = booking.getHouseTotalPrice() * 100;
|
|
|
|
|
- int totalfee = Func.parseInt(totalPrice);
|
|
|
|
|
|
|
+ double totalPrice = booking.getHouseTotalPrice() ;
|
|
|
|
|
+ int totalfee = Func.parseInt(totalPrice * 100);
|
|
|
|
|
|
|
|
WechatUnifiedOrder w = new WechatUnifiedOrder();
|
|
WechatUnifiedOrder w = new WechatUnifiedOrder();
|
|
|
w.setAppid(WeiXinUtil.appid_c);
|
|
w.setAppid(WeiXinUtil.appid_c);
|
|
@@ -675,7 +675,8 @@ public class AppBookingAction extends ActionSupport implements ServletRequestAwa
|
|
|
bookService.updateBooking(booking);
|
|
bookService.updateBooking(booking);
|
|
|
|
|
|
|
|
resultjson.put(B.code, ResultStatusCode.OK.getStatus());
|
|
resultjson.put(B.code, ResultStatusCode.OK.getStatus());
|
|
|
- resultjson.put(B.message, "支付成功");
|
|
|
|
|
|
|
+ resultjson.put(B.message, "返回成功");
|
|
|
|
|
+ resultjson.put(B.data, pay);
|
|
|
ResponseUtil.writeJson(ServletActionContext.getResponse(), resultjson.toString());
|
|
ResponseUtil.writeJson(ServletActionContext.getResponse(), resultjson.toString());
|
|
|
}
|
|
}
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|