| | |
| | | BrandWCPayRequestData payData; |
| | | String productNames = "小程序充值"; |
| | | MallMember mallMember = mallMemberMapper.selectById(apiRechargeWalletDto.getMemberId()); |
| | | String rechargeNo = "CZ_"+MallUtils.getOrderNum(); |
| | | String rechargeNo = apiRechargeWalletDto.getRechargeNo(); |
| | | Long agentApplyId = apiRechargeWalletDto.getAgentApplyId() == null ? 0L : apiRechargeWalletDto.getAgentApplyId(); |
| | | Boolean debug = xcxProperties.getDebug(); |
| | | String attrStr = "{'rechargeNo':"+rechargeNo+",'memberId':"+mallMember.getId()+"}"; |
| | | String attrStr = "{'rechargeNo':"+rechargeNo |
| | | +",'memberId':"+mallMember.getId() |
| | | +",'agentApplyId':"+agentApplyId |
| | | +",'type':"+apiRechargeWalletDto.getType()+"}"; |
| | | if (debug) { |
| | | payData = weixinServiceUtil.createRechargeWallet("[测试]" + productNames, rechargeNo, |
| | | 1, mallMember.getOpenId(), attrStr); |
| | |
| | | payData = weixinServiceUtil.createRechargeWallet(productNames, rechargeNo, |
| | | unit.multiply(money).intValue(),mallMember.getOpenId(), attrStr); |
| | | } |
| | | mallMoneyFlowService.addMoneyFlow( |
| | | mallMember.getId(), |
| | | money, |
| | | MoneyFlowTypeEnum.RECHARGE.getValue(), |
| | | rechargeNo, |
| | | FlowTypeEnum.BALANCE.getValue(), |
| | | "余额充值",1); |
| | | return payData; |
| | | } |
| | | |
| | |
| | | orderStateMsgVo.setTemplate_id(info.getTemplateId());//订阅消息模板id |
| | | orderStateMsgVo.setPage(info.getPage()); |
| | | Map<String, WxTemplateData> m = new HashMap<>(4); |
| | | m.put("thing19.DATA", new WxTemplateData(info.getAddressArea())); |
| | | m.put("phone_number18.DATA", new WxTemplateData(info.getLeaderPhone())); |
| | | m.put("thing3.DATA", new WxTemplateData(info.getGoodsName())); |
| | | m.put("thing15.DATA", new WxTemplateData(info.getRemark())); |
| | | m.put("thing19", new WxTemplateData(info.getAddressArea())); |
| | | m.put("phone_number18", new WxTemplateData(info.getLeaderPhone())); |
| | | m.put("thing3", new WxTemplateData(info.getGoodsName())); |
| | | m.put("thing15", new WxTemplateData(info.getRemark())); |
| | | orderStateMsgVo.setData(m); |
| | | String s = JSONUtil.toJsonStr(orderStateMsgVo); |
| | | log.info(s); |
| | |
| | | * @return |
| | | */ |
| | | //图片上传路径 |
| | | public static final String IMG_UPLOAD_PATH="/mnt/sdc/webresource/groupbuy/wxcode"; |
| | | public static final String IMG_UPLOAD_PATH="/mnt/sdc/webresource/qianayi/wxcode"; |
| | | public String generateAcode(String scene,String path,String imgName,String width, Integer type){ |
| | | String urlPrefix="https://hwfile.csxuncong.com/groupbuy/wxcode"; |
| | | String urlPrefix="https://hwfile.csxuncong.com/qianayi/wxcode"; |
| | | String imgPath=IMG_UPLOAD_PATH+imgName; |
| | | if(!FileUtil.exist(imgPath)){ |
| | | |