/** * 生成订单,跳转到微信支付<br> * * @author 侯杨<br> * 2015-01-13 * @throws IOException * @update * @see OrderManagerAction#toweixinPayOrder * @since vmaque2.0 */ public void toweixinPayOrder() throws IOException { String price = request.getParameter("price"); String paytype = request.getParameter("paytype"); // 支付方式 // 商品总价赋值 conSumerUserData.setPayType(Integer.parseInt(paytype)); commodityConfigData.setConfigPrice(Double.parseDouble(price)); conSumerOrderData = orderManagerFacade.createOrder( commodityConfigData, conSumerUserData, pageDomainName, goodsNum); GoodsInfoData goodsInfoData = new GoodsInfoData(); goodsInfoData.setId(commodityConfigData.getGoodsInfoData().getId()); goodsInfoData = goodsInfoFacade.getGoodsInfoData(goodsInfoData); conSumerOrderData.setPrice(Double.parseDouble(price)); conSumerOrderData.setGoodsName(goodsInfoData.getGoodsName()); if (conSumerOrderData != null) { conSumerOrderData.setConSumerUserData(conSumerUserData); JSONObject object = JSONObject.fromObject(conSumerOrderData); response.getWriter().print(object); } else { response.getWriter().print("1"); } }