fixed setSuiteSession
This commit is contained in:
parent
7ca050e952
commit
ea539fdedd
@ -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="
|
||||
|
||||
@ -3,7 +3,7 @@ package com.foxinmy.weixin4j.tuple;
|
||||
/**
|
||||
* 客服消息元件
|
||||
*
|
||||
* @className Notifyable
|
||||
* @className NotifyTuple
|
||||
* @author jy
|
||||
* @date 2014年11月22日
|
||||
* @since JDK 1.7
|
||||
|
||||
@ -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 + "]";
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user