@@ -9,7 +9,7 @@ import java.util.Date;
public class FullReduction implements Serializable{
private static final long serialVersionUID = 2372933567932487087L;
private Integer id;
- private Integer openId;
+ private String openId;
private Date createDate;
public Integer getId() {
@@ -20,11 +20,11 @@ public class FullReduction implements Serializable{
this.id = id;
}
- public Integer getOpenId() {
+ public String getOpenId() {
return openId;
- public void setOpenId(Integer openId) {
+ public void setOpenId(String openId) {
this.openId = openId;
@@ -4,8 +4,9 @@ package com.iamberry.wechat.face.wechat;
public interface WeChatService {
/**
* 处理微信发来的请求
- * @param request
+ * @param
* @return
*/
public String processRequest(String FromUserName, String ToUserName, String MsgType, String createTime, String Content, String Event, String Ticket, String EventKey);
+ /*public String addFullReduction(String fromUserName);*/
@@ -395,9 +395,9 @@ public class WeChatServiceImpl implements WeChatService {
// 判断此用户是否已有资格
FullReduction fullReduction = memberDao.getFullReduction(fromUserName);
if (fullReduction != null) {
- return NameUtils.getConfig("FEMALE_LADY_REPLY");
+ StringBuffer buffer = new StringBuffer(NameUtils.getConfig("FEMALE_LADY_REPLY"));
+ return buffer.toString();
-
// 绑定关系
int count = memberDao.addFullReduction(fromUserName);
if (count < 1) {