From 1fe6ff9a3bae6075f997b522d18b0a3b2cecf38c Mon Sep 17 00:00:00 2001 From: gongbiao Date: Fri, 20 Sep 2019 14:12:58 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=B3=BB=E7=BB=9F=E5=8F=91=E5=8D=A1][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E7=9F=AD=E4=BF=A1]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxCouponPresentServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPresentServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPresentServiceImpl.java index 06b648c8f..b0cc66757 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPresentServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponPresentServiceImpl.java @@ -107,7 +107,7 @@ public class WxCouponPresentServiceImpl implements WxCouponPresentService { wxCouponPresentMapper.insertSelective(record); //小程序 WxAppinfo appInfo = wxAppinfoService.getCAppInfo(tenantId); - String priceStr = wxCoupon.getPriceStr(); + String title = wxCoupon.getTitle(); String name = appInfo.getName(); List tempList = wxCouponPasswordMapper.findList(wxCouponPassword); //循环发送 @@ -115,7 +115,7 @@ public class WxCouponPresentServiceImpl implements WxCouponPresentService { for (String phone : phoneSet) { WxCouponPassword couponPassword = list.get(i); //发送 - sendMsg(tenantId, phone, priceStr, name, couponPassword.getPassword(), couponPassword.getId().toString()); + sendMsg(tenantId, phone, title, name, couponPassword.getPassword(), couponPassword.getId().toString()); //记录发送数据便于更新状态 couponPassword.setSendedPhone(phone); tempList.add(couponPassword); @@ -126,14 +126,14 @@ public class WxCouponPresentServiceImpl implements WxCouponPresentService { return new ResultData(); } - private void sendMsg(String tenantId, String phone, String money, String appName, String password, String id) { + private void sendMsg(String tenantId, String phone, String title, String appName, String password, String id) { logger.info("》》》》》》》》》》》"); logger.info("系统发卡发送短信开始"); logger.info("》》》》》》》》》》》"); Map msgReplaceMap = new HashMap(); msgReplaceMap.put("id", id); msgReplaceMap.put("app", appName); - msgReplaceMap.put("money", money); + msgReplaceMap.put("title", title); msgReplaceMap.put("pw", password); WxMsgRecord wxMsgRecord = new WxMsgRecord(); wxMsgRecord.setMsgType(EnumMsgRecordType.SMS.getCode());