fixed setSuiteSession

This commit is contained in:
jinyu 2015-07-15 17:15:50 +08:00
parent 7ca050e952
commit ea539fdedd
4 changed files with 4 additions and 22 deletions

View File

@ -53,34 +53,18 @@ public class Article implements Serializable {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public String getPicUrl() {
return picUrl;
}
public void setPicUrl(String picUrl) {
this.picUrl = picUrl;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@Override
public String toString() {
return "Article [title=" + title + ", desc=" + desc + ", picUrl="

View File

@ -3,7 +3,7 @@ package com.foxinmy.weixin4j.tuple;
/**
* 客服消息元件
*
* @className Notifyable
* @className NotifyTuple
* @author jy
* @date 2014年11月22日
* @since JDK 1.7

View File

@ -35,10 +35,6 @@ public class Text implements MassTuple, NotifyTuple {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Override
public String toString() {
return "Text [content=" + content + "]";

View File

@ -131,7 +131,9 @@ public class SuiteApi extends QyApi {
String suite_set_session_uri = getRequestUri("suite_set_session_uri");
JSONObject para = new JSONObject();
para.put("pre_auth_code", suitePreCodeHolder.getAccessToken());
para.put("session_info", appids);
JSONObject appid = new JSONObject();
appid.put("appid", appids);
para.put("session_info", appid);
WeixinResponse response = weixinClient
.post(String.format(suite_set_session_uri,
suiteTokenHolder.getAccessToken()), para.toJSONString());