diff --git a/src/main/java/chanjarster/weixin/api/WxConsts.java b/src/main/java/chanjarster/weixin/api/WxConsts.java index 8d7d8d8fb..14725baa3 100644 --- a/src/main/java/chanjarster/weixin/api/WxConsts.java +++ b/src/main/java/chanjarster/weixin/api/WxConsts.java @@ -18,6 +18,17 @@ public class WxConsts { public static final String EVT_LOCATION = "LOCATION"; public static final String EVT_CLICK = "LOCATION"; public static final String EVT_VIEW = "VIEW"; + public static final String EVT_MASS_SEND_JOB_FINISH = "MASSSENDJOBFINISH"; - + public static final String ST_SEND_SUCCESS = "send success"; + public static final String ST_SEND_FAIL = "send fail"; + public static final String ST_涉嫌广告 = "err(10001)"; + public static final String ST_涉嫌政治 = "err(20001)"; + public static final String ST_涉嫌社会 = "err(20004)"; + public static final String ST_涉嫌色情 = "err(20002)"; + public static final String ST_涉嫌违法犯罪 = "err(20006)"; + public static final String ST_涉嫌欺诈 = "err(20008)"; + public static final String ST_涉嫌版权 = "err(20013)"; + public static final String ST_涉嫌互推_互相宣传 = "err(22000)"; + public static final String ST_涉嫌其他 = "err(21000)"; } diff --git a/src/main/java/chanjarster/weixin/api/WxService.java b/src/main/java/chanjarster/weixin/api/WxService.java index 00cb9f354..9e844f839 100644 --- a/src/main/java/chanjarster/weixin/api/WxService.java +++ b/src/main/java/chanjarster/weixin/api/WxService.java @@ -12,7 +12,7 @@ public interface WxService { /** *
* 验证推送过来的消息的正确性
- * 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=接入指南
+ * 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=验证消息真实性
*
* @param timestamp
* @param nonce
@@ -24,7 +24,7 @@ public interface WxService {
/**
*
* 获取access_token,本方法线程安全
- * 且在多线程同时刷新时只刷新一次,避免超出1200次的调用次数上限
+ * 且在多线程同时刷新时只刷新一次,避免超出200次/日的调用次数上限
*
* 另:本service的所有方法都会在access_token过期是调用此方法
*
diff --git a/src/main/java/chanjarster/weixin/bean/WxXmlMessage.java b/src/main/java/chanjarster/weixin/bean/WxXmlMessage.java
index e1459ab34..0a2b56c51 100644
--- a/src/main/java/chanjarster/weixin/bean/WxXmlMessage.java
+++ b/src/main/java/chanjarster/weixin/bean/WxXmlMessage.java
@@ -119,6 +119,32 @@ public class WxXmlMessage {
@XmlJavaTypeAdapter(AdapterCDATA.class)
private String Recognition;
+ ///////////////////////////////////////
+ // 群发消息返回的结果
+ ///////////////////////////////////////
+ /**
+ * 群发的结果
+ */
+ @XmlElement(name="Status")
+ @XmlJavaTypeAdapter(AdapterCDATA.class)
+ private String Status;
+ /**
+ * group_id下粉丝数;或者openid_list中的粉丝数
+ */
+ private int TotalCount;
+ /**
+ * 过滤(过滤是指特定地区、性别的过滤、用户设置拒收的过滤,用户接收已超4条的过滤)后,准备发送的粉丝数,原则上,FilterCount = SentCount + ErrorCount
+ */
+ private int FilterCount;
+ /**
+ * 发送成功的粉丝数
+ */
+ private int SentCount;
+ /**
+ * 发送失败的粉丝数
+ */
+ private int ErrorCount;
+
public String getToUserName() {
return ToUserName;
}
@@ -421,6 +447,36 @@ public class WxXmlMessage {
} else if (!Url.equals(other.Url)) return false;
return true;
}
+ public String getStatus() {
+ return Status;
+ }
+ public void setStatus(String status) {
+ Status = status;
+ }
+ public int getTotalCount() {
+ return TotalCount;
+ }
+ public void setTotalCount(int totalCount) {
+ TotalCount = totalCount;
+ }
+ public int getFilterCount() {
+ return FilterCount;
+ }
+ public void setFilterCount(int filterCount) {
+ FilterCount = filterCount;
+ }
+ public int getSentCount() {
+ return SentCount;
+ }
+ public void setSentCount(int sentCount) {
+ SentCount = sentCount;
+ }
+ public int getErrorCount() {
+ return ErrorCount;
+ }
+ public void setErrorCount(int errorCount) {
+ ErrorCount = errorCount;
+ }
}
\ No newline at end of file