소스 검색

修改关注提示语

liujiankang 6 년 전
부모
커밋
10c642eb38

+ 1 - 1
watero-common-tool/src/main/java/com/iamberry/wechat/tools/ResultInfo.java

@@ -182,7 +182,7 @@ public class ResultInfo {
 	 */
 	public static String prize_receive_push="";
 	/**
-	 * 	2019 38 妇女节活动回复语
+	 * 	2019 38 妇女节回复语
 	 */
 	public static String female_lady_reply="";
 

+ 3 - 4
watero-wechat-service/src/main/java/com/iamberry/wechat/service/wechat/WeChatServiceImpl.java

@@ -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 "活动已结束!";
 		}
 	}
 	

+ 30 - 0
watero-wechat-web/src/main/java/com/iamberry/wechat/handles/admin/FullReductionHandler.java

@@ -0,0 +1,30 @@
+package com.iamberry.wechat.handles.admin;
+
+import com.iamberry.wechat.core.entity.admin.FullReduction;
+import com.iamberry.wechat.face.member.MemberService;
+import com.iamberry.wechat.face.wechat.WeChatService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import javax.servlet.http.HttpServletRequest;
+
+/**
+ * 2019 38妇女节 活动
+ * Created by Administrator on 2019/3/5.
+ */
+@Controller
+@RequestMapping("/admin/fullReduction")
+public class FullReductionHandler {
+    @Autowired
+    private MemberService memberService;
+    @Autowired
+    private WeChatService weChatService;
+
+    /*@RequestMapping("/addFullReduction")
+    @ResponseBody
+    public String addFullReduction(HttpServletRequest request,String openid){
+        return weChatService.addFullReduction(openid);
+    }*/
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
watero-wechat-web/src/main/resources/ResultInfo.properties