| | |
| | | public class XcxPayServiceImpl implements IXcxPayService { |
| | | |
| | | @Autowired |
| | | MallOrderInfoMapper mallOrderInfoMapper; |
| | | private MallOrderInfoMapper mallOrderInfoMapper; |
| | | @Autowired |
| | | MallMemberMapper mallMemberMapper; |
| | | private MallMemberMapper mallMemberMapper; |
| | | @Autowired |
| | | WeixinServiceUtil weixinServiceUtil; |
| | | @Autowired |
| | | DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | private DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | @Autowired |
| | | RedisUtils redisUtils; |
| | | @Autowired |
| | |
| | | String url = WechatConfigure.SEND_INFO_URL + redisUtils.get(WechatConfigure.WX_ACCESS_TOKEN_REDIS_KEY); |
| | | //拼接推送的模版 |
| | | OrderStateMsgVo orderStateMsgVo = new OrderStateMsgVo(); |
| | | orderStateMsgVo.setToUser(info.getOpenId());//用户的openId |
| | | orderStateMsgVo.setTemplateId(info.getTemplateId());//订阅消息模板id |
| | | orderStateMsgVo.setTouser(info.getOpenId());//用户的openId |
| | | orderStateMsgVo.setTemplate_id(info.getTemplateId());//订阅消息模板id |
| | | Map<String, WxTemplateData> m = new HashMap<>(5); |
| | | m.put("character_string1", new WxTemplateData(info.getOrderNo())); |
| | | m.put("thing9", new WxTemplateData(info.getGoodsName())); |
| | |
| | | RestTemplate restTemplate = new RestTemplate(); |
| | | String url = WXAPPLETURl + redisUtils.get(WechatConfigure.WX_ACCESS_TOKEN_REDIS_KEY); |
| | | //拼接推送的模版 |
| | | /** |
| | | * { |
| | | * "touser": "oJkRK4_pWN2kjp75B_G6oGSWawj0", |
| | | * "template_id": "Yk3_M11Pw5rablln7kQBpasfG9ynRNwD9OKsyvUSoWg", |
| | | * "page": "index", |
| | | * "miniprogram_state":"developer", |
| | | * "lang":"zh_CN", |
| | | * "data": { |
| | | * "character_string1": { |
| | | * "value": "2022081214472943380" |
| | | * }, |
| | | * "thing16": { |
| | | * "value": "22704967" |
| | | * }, |
| | | * "thing9": { |
| | | * "value": "商品" |
| | | * }, |
| | | * "thing13": { |
| | | * "value": "测试" |
| | | * }, |
| | | * "phrase2": { |
| | | * "value": "已送达" |
| | | * } |
| | | * } |
| | | * } |
| | | */ |
| | | OrderStateMsgVo orderStateMsgVo = new OrderStateMsgVo(); |
| | | orderStateMsgVo.setToUser(info.getOpenId());//用户的openId |
| | | orderStateMsgVo.setTemplateId(info.getTemplateId());//订阅消息模板id |
| | | orderStateMsgVo.setTouser(info.getOpenId());//用户的openId |
| | | orderStateMsgVo.setTemplate_id(info.getTemplateId());//订阅消息模板id |
| | | Map<String, WxTemplateData> m = new HashMap<>(5); |
| | | m.put("character_string1", new WxTemplateData(info.getOrderNo())); |
| | | m.put("thing9", new WxTemplateData(info.getGoodsName())); |