| | |
| | | import com.oying.modules.security.config.WeiXinProperties; |
| | | import com.oying.modules.sh.service.OrderReturnService; |
| | | import com.oying.modules.sh.service.OrderService; |
| | | import com.oying.utils.CloseUtil; |
| | | import com.oying.utils.enums.PayTypeEnum; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public HwcResponse pay(String ip, String total, String timeExpire, String description, String openId, |
| | | String orderNum, PayTypeEnum status) throws IOException { |
| | | String orderNum, PayTypeEnum status) { |
| | | SortedMap<String, String> map = new TreeMap<>(); |
| | | map.put("service", service_pay); |
| | | map.put("version", version); |
| | |
| | | throw new BadRequestException("操作失败"); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("请求参数:{}", params); |
| | | log.error("返回参数:{}", resultMap); |
| | | throw new BadRequestException("系统异常:" + e.getMessage()); |
| | | log.error("汇旺财下单错误请求参数:{}", params); |
| | | log.error("汇旺财下单错误返回参数:{}", resultMap); |
| | | throw new BadRequestException("汇旺财下单错误:" + e.getMessage()); |
| | | } finally { |
| | | if (response != null) { |
| | | response.close(); |
| | | CloseUtil.close(response); |
| | | } |
| | | if (client != null) { |
| | | client.close(); |
| | | CloseUtil.close(client); |
| | | } |
| | | } |
| | | } |