| | |
| | | // unipayDto.setProductName(items.get(0).getGoodsName()); |
| | | // } |
| | | String unipayStr = payService.aliPay(orderInfo); |
| | | JSONObject jsonObjectRes = JSONUtil.parseObj(unipayStr); |
| | | Object alipay_trade_app_pay_response = jsonObjectRes.get("alipay_trade_app_pay_response"); |
| | | JSONObject parseObj = JSONUtil.parseObj(alipay_trade_app_pay_response); |
| | | payResultStr = (String) parseObj.get("msg"); |
| | | rcResult = (String) parseObj.get("code"); |
| | | if(!"10000".equals(rcResult) || !"Success".equals(payResultStr) ){ |
| | | throw new FebsException("支付失败"); |
| | | } |
| | | payResultStr = unipayStr; |
| | | rcResult = unipayStr; |
| | | orderInfo.setPayOrderNo(payResultStr); |
| | | orderInfo.setPayMethod("支付宝支付"); |
| | | break; |