|
@@ -141,11 +141,10 @@ public class WeChatServiceImpl implements WeChatService {
|
|
|
"<MsgType><![CDATA[transfer_customer_service]]></MsgType></xml>";
|
|
|
return xml;
|
|
|
}
|
|
|
-
|
|
|
if (content.startsWith(NameUtils.getConfig("PLACE_CODE_PREFIX"))) {// 激活码为“CODE”开头 则为代理商绑定
|
|
|
content = StringUtils.trim(content);
|
|
|
respContent = bulidPlace(content, fromUserName);
|
|
|
- }if (NameUtils.getConfig("FEMALE_LADY").equals(content)) {// 2019-3-8节活动 输入女王节可获得满减满赠优惠
|
|
|
+ }else if ("女王节".equals(content)) {// 2019-3-8节活动 输入女王节可获得满减满赠优惠
|
|
|
respContent = addFullReduction(fromUserName);//为该用户添加满减资格记录
|
|
|
} else {
|
|
|
// 文本类型的消息处理
|
|
@@ -401,13 +400,13 @@ public class WeChatServiceImpl implements WeChatService {
|
|
|
// 绑定关系
|
|
|
int count = memberDao.addFullReduction(fromUserName);
|
|
|
if (count < 1) {
|
|
|
- return NameUtils.getConfig("FEMALE_LADY_ERROR");
|
|
|
+ return "激活女王节活动资格失败,请稍后重试!";
|
|
|
}else{
|
|
|
/*StringBuffer buffer = new StringBuffer(NameUtils.getConfig("FEMALE_LADY_REPLY"));*/
|
|
|
return ResultInfo.female_lady_reply;
|
|
|
}
|
|
|
}else{
|
|
|
- return NameUtils.getConfig("FEMALE_LADY_INTRODUCE");
|
|
|
+ return "活动已结束!";
|
|
|
}
|
|
|
}
|
|
|
|