mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-09-24 13:03:46 +08:00
添加一些常量, 修改一些注释
This commit is contained in:
@@ -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)";
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@ public interface WxService {
|
||||
/**
|
||||
* <pre>
|
||||
* 验证推送过来的消息的正确性
|
||||
* 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=接入指南
|
||||
* 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=验证消息真实性
|
||||
* </pre>
|
||||
* @param timestamp
|
||||
* @param nonce
|
||||
@@ -24,7 +24,7 @@ public interface WxService {
|
||||
/**
|
||||
* <pre>
|
||||
* 获取access_token,本方法线程安全
|
||||
* 且在多线程同时刷新时只刷新一次,避免超出1200次的调用次数上限
|
||||
* 且在多线程同时刷新时只刷新一次,避免超出200次/日的调用次数上限
|
||||
*
|
||||
* 另:本service的所有方法都会在access_token过期是调用此方法
|
||||
*
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user