|
|
|
@@ -417,9 +417,20 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { |
|
|
|
//找出用户手机号 |
|
|
|
String phone = user.getPhone(); |
|
|
|
|
|
|
|
//小程序名称 |
|
|
|
WxAppinfo appInfo = wxAppinfoService.getCAppInfo(tenantEntity,EnumPayWay.getEnum(couponOrder.getPayVendor())); |
|
|
|
String appName = appInfo.getName(); |
|
|
|
//小程序名称,无需支付的那些,默认微信 |
|
|
|
EnumPayWay payw = EnumPayWay.getEnum(couponOrder.getPayVendor()); |
|
|
|
String appName = ""; |
|
|
|
if(payw.getType() == null) { |
|
|
|
WxAppinfo appinfoQ = new WxAppinfo(); |
|
|
|
appinfoQ.setPlat(EnumPayWay.PAY_WAY_WECHAT.getPlat().getCode()); |
|
|
|
appinfoQ.updateTenantInfo(tenantEntity); |
|
|
|
appinfoQ.setType(EnumAppType.C.getCode()); |
|
|
|
List<WxAppinfo> appList = wxAppinfoService.getList(appinfoQ); |
|
|
|
appName = appList.get(0).getName(); |
|
|
|
}else { |
|
|
|
WxAppinfo appInfo = wxAppinfoService.getCAppInfo(tenantEntity,payw); |
|
|
|
appName = appInfo.getName(); |
|
|
|
} |
|
|
|
Map<String, String> msgReplaceMap = new HashMap(); |
|
|
|
msgReplaceMap.put("title", title); |
|
|
|
msgReplaceMap.put("app", appName); |
|
|
|
|