| | |
| | | |
| | | public ServerResponse thirdPartyRecharge(HttpServletRequest request, String tradeAmount, Integer type) throws UnsupportedEncodingException, JsonProcessingException, NoSuchAlgorithmException { |
| | | // 支付1 |
| | | String reqUrl = "https://api.watchglbpay.com/pay/web"; |
| | | String reqUrl = "https://api.watchglb.com/pay/web"; |
| | | // 支付2 |
| | | String uipReqRul = "https://v2.fastechservicepro.com/payin/unifiedorder"; |
| | | |
| | |
| | | .last("limit 1") |
| | | ); |
| | | |
| | | if(!vo.getStatus().equals("payin_ing")){ |
| | | if(vo.getStatus().equals("payin_ing")){ |
| | | log.error("充值2回调交易中:"+vo.toString()); |
| | | return; |
| | | } |
| | | |
| | | if(!vo.getStatus().equals("payin_fail")){ |
| | | }else if(vo.getStatus().equals("payin_fail")){ |
| | | paymentRecharge.setStatus(2); |
| | | paymentRecharge.setAmount(new BigDecimal(vo.getAccount_fee())); |
| | | paymentRecharge.setPayInfo(vo.toString()); |
| | | paymentRechargeService.updateById(paymentRecharge); |
| | | log.error("充值回调失败:"+vo.toString()); |
| | | return; |
| | | }else if(!vo.getStatus().equals("payin_fail") && !vo.getStatus().equals("payin_ing") && !vo.getStatus().equals("payin_success")){ |
| | | log.error("充值回调失败----未知状态:"+vo.toString()); |
| | | return; |
| | | } |
| | | |
| | | if(ObjectUtils.isEmpty(paymentRecharge)){ |