| | |
| | | |
| | | @Autowired |
| | | private WxPayService wxPayService; |
| | | // private WxPayService wxPayService = new com.github.binarywang.wxpay.service.impl.WxPayServiceImpl(); |
| | | |
| | | @Autowired |
| | | private WxPayProperties wxPayProperties; |
| | |
| | | request.setSpbillCreateIp("127.0.0.1"); |
| | | request.setTradeType("APP"); |
| | | |
| | | if ("dev".equals(active) || "test".equals(active)) { |
| | | // if ("dev".equals(active) || "test".equals(active)) { |
| | | if ("dev".equals(active)) { |
| | | request.setTotalFee(1); |
| | | } else { |
| | | request.setTotalFee(orderInfo.getAmount().add(orderInfo.getCarriage()).multiply(new BigDecimal(100)).intValue()); |
| | |
| | | |
| | | commonService.addAchieveAndUpdateLevel(orderInfo.getId(),orderInfo.getMemberId()); |
| | | mallMoneyFlowService.addMoneyFlow(orderInfo.getMemberId(), orderInfo.getAmount().negate(), MoneyFlowTypeEnum.PAY.getValue(), orderInfo.getOrderNo(), FlowTypeEnum.WX.getValue()); |
| | | agentProducer.sendAutoLevelUpMsg(orderInfo.getMemberId()); |
| | | agentProducer.sendReturnMoneyMsg(orderInfo.getId()); |
| | | |
| | | } |
| | | } |