@since JDK 1.7 => @since JDK 1.6

This commit is contained in:
jinyu
2015-12-08 11:58:49 +08:00
parent 105cf4bfe8
commit 94ec4a2196
362 changed files with 412 additions and 403 deletions
+1 -1
View File
@@ -170,6 +170,6 @@
+ version upgrade to 1.6.3
* 2015-12-01
* 2015-12-08
+ version upgrade to 1.6.4
+1 -1
View File
@@ -43,7 +43,7 @@ weixin4j-mp
如何使用
--------
0.maven依赖(1.6.4,2015-12-01 released)
0.maven依赖(1.6.4,2015-12-08 released)
<dependency>
<groupId>com.foxinmy</groupId>
@@ -59,7 +59,7 @@ import com.foxinmy.weixin4j.type.MediaType;
* @className WeixinProxy
* @author jy.hu
* @date 2014年3月23日
* @since JDK 1.7
* @since JDK 1.6
* @see <a href="http://mp.weixin.qq.com/wiki/index.php">api文档</a>
*/
public class WeixinProxy {
@@ -28,7 +28,7 @@ import com.foxinmy.weixin4j.util.IOUtil;
* @className CustomApi
* @author jy
* @date 2014年11月16日
* @since JDK 1.7
* @since JDK 1.6
* @see <a href="http://dkf.qq.com">多客服说明</a>
* @see<a
* href="http://mp.weixin.qq.com/wiki/9/6fff6f191ef92c126b043ada035cc935.html"
@@ -23,7 +23,7 @@ import com.foxinmy.weixin4j.util.DateUtil;
* @className DataApi
* @author jy
* @date 2015年1月7日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class DataApi extends MpApi {
@@ -17,7 +17,7 @@ import com.foxinmy.weixin4j.token.TokenHolder;
* @className GroupApi
* @author jy.hu
* @date 2014年9月25日
* @since JDK 1.7
* @since JDK 1.6
* @see <a
* href="http://mp.weixin.qq.com/wiki/13/be5272dc4930300ba561d927aead2569.html">分组接口</a>
* @see com.foxinmy.weixin4j.mp.model.Group
@@ -26,7 +26,7 @@ import com.foxinmy.weixin4j.tuple.MpArticle;
* @className HelperApi
* @author jy.hu
* @date 2014年9月26日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class HelperApi extends MpApi {
@@ -23,7 +23,7 @@ import com.foxinmy.weixin4j.util.StringUtil;
* @className MassApi
* @author jy.hu
* @date 2014年9月25日
* @since JDK 1.7
* @since JDK 1.6
* @see <a
* href="http://mp.weixin.qq.com/wiki/15/5380a4e6f02f2ffdc7981a8ed7a40753.html">群发接口</a>
*/
@@ -56,7 +56,7 @@ import com.foxinmy.weixin4j.util.WeixinErrorUtil;
* @className MediaApi
* @author jy.hu
* @date 2014年9月25日
* @since JDK 1.7
* @since JDK 1.6
* @see com.foxinmy.weixin4j.type.MediaType
*/
public class MediaApi extends MpApi {
@@ -24,7 +24,7 @@ import com.foxinmy.weixin4j.type.ButtonType;
* @className MenuApi
* @author jy.hu
* @date 2014年9月25日
* @since JDK 1.7
* @since JDK 1.6
* @see com.foxinmy.weixin4j.model.Button
*/
public class MenuApi extends MpApi {
@@ -10,7 +10,7 @@ import com.foxinmy.weixin4j.api.BaseApi;
* @className MpApi
* @author jy.hu
* @date 2014年9月26日
* @since JDK 1.7
* @since JDK 1.6
* @see com.foxinmy.weixin4j.api.BaseApi
* @see <a href="http://mp.weixin.qq.com/wiki/index.php">api文档</a>
*/
@@ -16,7 +16,7 @@ import com.foxinmy.weixin4j.util.StringUtil;
* @className NotifyApi
* @author jy.hu
* @date 2014年9月26日
* @since JDK 1.7
* @since JDK 1.6
* @see <a
* href="http://mp.weixin.qq.com/wiki/1/70a29afed17f56d537c833f89be979c9.html#.E5.AE.A2.E6.9C.8D.E6.8E.A5.E5.8F.A3-.E5.8F.91.E6.B6.88.E6.81.AF">客服消息</a>
* @see com.foxinmy.weixin4j.mp.message.NotifyMessage
@@ -19,7 +19,7 @@ import com.foxinmy.weixin4j.util.StringUtil;
* @className OauthApi
* @author jy
* @date 2015年3月6日
* @since JDK 1.7
* @since JDK 1.6
* @see <a
* href="https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&lang=zh_CN">微信登陆</a>
*/
@@ -59,7 +59,7 @@ import com.foxinmy.weixin4j.xml.ListsuffixResultDeserializer;
* @className Pay2Api
* @author jy
* @date 2014年10月28日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class Pay2Api extends MpApi {
@@ -22,7 +22,7 @@ import com.foxinmy.weixin4j.util.Weixin4jConst;
* @className QrApi
* @author jy.hu
* @date 2014年9月25日
* @since JDK 1.7
* @since JDK 1.6
* @see <a
* href="http://mp.weixin.qq.com/wiki/18/28fc21e7ed87bec960651f0ce873ef8a.html">二维码支持</a>
*/
@@ -16,7 +16,7 @@ import com.foxinmy.weixin4j.token.TokenHolder;
* @className TemplApi
* @author jy
* @date 2014年9月30日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class TmplApi extends MpApi {
@@ -21,7 +21,7 @@ import com.foxinmy.weixin4j.token.TokenHolder;
* @className UserApi
* @author jy.hu
* @date 2014年9月25日
* @since JDK 1.7
* @since JDK 1.6
* @see com.foxinmy.weixin4j.mp.model.User
*/
public class UserApi extends MpApi {
@@ -10,7 +10,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className ArticleDatacube1
* @author jy
* @date 2015年3月29日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class ArticleDatacube1 implements Serializable {
@@ -10,7 +10,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className ArticleDatacube2
* @author jy
* @date 2015年3月29日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class ArticleDatacube2 extends ArticleDatacube1 {
@@ -12,7 +12,7 @@ import com.foxinmy.weixin4j.mp.type.ShareSourceType;
* @className ArticleDatacubeShare
* @author jy
* @date 2015年1月30日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class ArticleDatacubeShare implements Serializable {
@@ -10,7 +10,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className ArticleSummary
* @author jy
* @date 2015年1月30日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class ArticleSummary extends ArticleDatacube1 {
@@ -12,7 +12,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className ArticleTotal
* @author jy
* @date 2015年1月30日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class ArticleTotal implements Serializable {
@@ -11,7 +11,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className InterfaceSummary
* @author jy
* @date 2015年1月30日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class InterfaceSummary implements Serializable {
@@ -11,7 +11,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className UpstreamMsg
* @author jy
* @date 2015年1月30日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class UpstreamMsg implements Serializable {
@@ -12,7 +12,7 @@ import com.foxinmy.weixin4j.mp.type.DatacuteCountIntervalType;
* @className UpstreamMsgDist
* @author jy
* @date 2015年1月30日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class UpstreamMsgDist implements Serializable {
@@ -12,7 +12,7 @@ import com.foxinmy.weixin4j.mp.type.UserSourceType;
* @className UserSummary
* @author jy
* @date 2015年1月25日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class UserSummary implements Serializable {
@@ -9,7 +9,7 @@ import com.foxinmy.weixin4j.tuple.NotifyTuple;
*
* @author jy.hu
* @date 2014年4月4日
* @since JDK 1.7
* @since JDK 1.6
* @see com.foxinmy.weixin4j.tuple.Text
* @see com.foxinmy.weixin4j.tuple.Image
* @see com.foxinmy.weixin4j.tuple.Voice
@@ -13,7 +13,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className TemplateMessage
* @author jy
* @date 2014年9月29日
* @since JDK 1.7
* @since JDK 1.6
* @see <a
* href="http://mp.weixin.qq.com/wiki/17/304c1885ea66dbedf7dc170d84999a9d.html">模板消息</a>
*/
@@ -64,7 +64,7 @@ public class TemplateMessage implements Serializable {
* @className Item
* @author jy
* @date 2015年3月29日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
private static class Item implements Serializable {
@@ -14,7 +14,7 @@ import com.foxinmy.weixin4j.mp.type.AutoreplyMode;
* @className AutoReplySetting
* @author jy
* @date 2015年4月15日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class AutoReplySetting implements Serializable {
@@ -109,7 +109,7 @@ public class AutoReplySetting implements Serializable {
* @className Rule
* @author jy
* @date 2015年4月15日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public static class Rule implements Serializable {
@@ -202,7 +202,7 @@ public class AutoReplySetting implements Serializable {
* @className Entry
* @author jy
* @date 2015年4月15日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public static class Entry implements Serializable {
@@ -12,7 +12,7 @@ import com.foxinmy.weixin4j.mp.type.CustomRecordOperCode;
* @className CustomRecord
* @author jy
* @date 2014年6月28日
* @since JDK 1.7
* @since JDK 1.6
*/
public class CustomRecord implements Serializable {
@@ -11,7 +11,7 @@ import com.alibaba.fastjson.annotation.JSONField;
*
* @author jy.hu
* @date 2014年4月4日
* @since JDK 1.7
* @since JDK 1.6
*/
public class Following implements Serializable {
@@ -7,7 +7,7 @@ import java.io.Serializable;
*
* @author jy.hu
* @date 2014年4月4日
* @since JDK 1.7
* @since JDK 1.6
*/
public class Group implements Serializable {
@@ -11,7 +11,7 @@ import com.foxinmy.weixin4j.mp.type.KfOnlineStatus;
* @className KfAccount
* @author jy
* @date 2014年11月16日
* @since JDK 1.7
* @since JDK 1.6
* @see <a href="http://dkf.qq.com/document-3_1.html">多客服账号信息</a>
*/
public class KfAccount implements Serializable {
@@ -11,7 +11,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className KfSession
* @author jy
* @date 2015年3月22日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class KfSession implements Serializable {
@@ -11,7 +11,7 @@ import com.foxinmy.weixin4j.model.Button;
* @className MenuSetting
* @author jy
* @date 2015年4月14日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class MenuSetting implements Serializable {
@@ -9,7 +9,7 @@ import com.foxinmy.weixin4j.model.Token;
* @className OauthToken
* @author jy.hu
* @date 2014年4月6日
* @since JDK 1.7
* @since JDK 1.6
* @see com.foxinmy.weixin4j.mp.model.AuthResult
* @see com.foxinmy.weixin4j.mp.model.AuthResult.AuthScope
*/
@@ -14,7 +14,7 @@ import com.foxinmy.weixin4j.type.QRType;
* @className QRParameter
* @author jy.hu
* @date 2014年4月8日
* @since JDK 1.7
* @since JDK 1.6
*
*/
public class QRParameter implements Serializable {
@@ -11,7 +11,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className QRResult
* @author jy
* @date 2015年7月29日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class QRResult implements Serializable {
@@ -11,7 +11,7 @@ import com.foxinmy.weixin4j.mp.type.SemCategory;
* @className SemQuery
* @author jy
* @date 2014年11月7日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class SemQuery implements Serializable {
@@ -10,7 +10,7 @@ import com.foxinmy.weixin4j.http.weixin.JsonResult;
* @className SemResult
* @author jy
* @date 2014年11月7日
* @since JDK 1.7
* @since JDK 1.6
* @see <a
* href="http://mp.weixin.qq.com/wiki/0/0ce78b3c9524811fee34aba3e33f3448.html">语义理解</a>
*/
@@ -18,7 +18,7 @@ import com.foxinmy.weixin4j.util.StringUtil;
*
* @author jy.hu
* @date 2014年4月8日
* @since JDK 1.7
* @since JDK 1.6
*/
public class User implements Serializable {
@@ -16,7 +16,7 @@ import com.foxinmy.weixin4j.type.SignType;
* @className ApiResultV2
* @author jy
* @date 2014年12月30日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@XmlRootElement
@@ -22,7 +22,7 @@ import com.foxinmy.weixin4j.util.MapUtil;
* @className JsPayRequestV2
* @author jy
* @date 2014年8月17日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@XmlRootElement
@@ -14,7 +14,7 @@ import com.foxinmy.weixin4j.payment.JsPayNotify;
* @className PayNativeNotifyV2
* @author jy
* @date 2014年10月28日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@XmlRootElement
@@ -14,7 +14,7 @@ import com.foxinmy.weixin4j.model.WeixinPayAccount;
* @className NativePayResponseV2
* @author jy
* @date 2014年10月28日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@XmlRootElement
@@ -13,7 +13,7 @@ import com.foxinmy.weixin4j.util.DateUtil;
* @className OrderV2
* @author jy
* @date 2014年11月2日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class OrderV2 extends ApiResultV2 {
@@ -14,7 +14,7 @@ import com.foxinmy.weixin4j.payment.PayBaseInfo;
* @className PayFeedback
* @author jy
* @date 2014年10月29日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@XmlRootElement
@@ -17,7 +17,7 @@ import com.foxinmy.weixin4j.util.DateUtil;
* @className PayPackageV2
* @author jy
* @date 2014年8月17日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@XmlRootElement
@@ -21,7 +21,7 @@ import com.foxinmy.weixin4j.xml.XmlStream;
* @className PayUtil2
* @author jy
* @date 2014年10月28日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class PayUtil2 {
@@ -14,7 +14,7 @@ import com.foxinmy.weixin4j.payment.PayBaseInfo;
* @className PayWarn
* @author jy
* @date 2014年12月31日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@XmlRootElement
@@ -15,7 +15,7 @@ import com.foxinmy.weixin4j.type.RefundStatus;
* @className RefundDetailV2
* @author jy
* @date 2014年11月6日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@XmlRootElement
@@ -16,7 +16,7 @@ import com.foxinmy.weixin4j.xml.ListsuffixResult;
* @className RefundRecordV2
* @author jy
* @date 2014年11月1日
* @since JDK 1.7
* @since JDK 1.6
* @see com.foxinmy.weixin4j.mp.payment.v2.RefundDetailV2
*/
@XmlRootElement
@@ -13,7 +13,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @className RefundResultV2
* @author jy
* @date 2014年11月6日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@XmlRootElement
@@ -15,7 +15,7 @@ import com.foxinmy.weixin4j.token.TokenHolder;
* @className WeixinJSTicketCreator
* @author jy
* @date 2015年1月10日
* @since JDK 1.7
* @since JDK 1.6
* @see <a
* href="http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html#.E9.99.84.E5.BD.951-JS-SDK.E4.BD.BF.E7.94.A8.E6.9D.83.E9.99.90.E7.AD.BE.E5.90.8D.E7.AE.97.E6.B3.95">JS
* TICKET</a>
@@ -14,7 +14,7 @@ import com.foxinmy.weixin4j.token.TokenCreator;
* @className WeixinTokenCreator
* @author jy
* @date 2015年1月10日
* @since JDK 1.7
* @since JDK 1.6
* @see <a
* href="http://mp.weixin.qq.com/wiki/11/0e4b294685f817b95cbed85ba5e82b8f.html">微信公众平台获取token说明</a>
* @see com.foxinmy.weixin4j.model.Token
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className AutomatchMode
* @author jy
* @date 2015年4月15日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum AutomatchMode {
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className AutoreplyMode
* @author jy
* @date 2015年4月15日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum AutoreplyMode {
@@ -9,7 +9,7 @@ import java.util.Map;
* @className CustomRecordOperCode
* @author jy
* @date 2014年11月16日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum CustomRecordOperCode {
@@ -14,7 +14,7 @@ import com.foxinmy.weixin4j.mp.datacube.UserSummary;
* @className DatacubeType
* @author jy
* @date 2015年1月25日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum DatacubeType {
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className DatacuteCountIntervalType
* @author jy
* @date 2015年3月29日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum DatacuteCountIntervalType {
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className FaceSize
* @author jy
* @date 2014年11月5日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum FaceSize {
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className IndustryType
* @author jy
* @date 2014年12月12日
* @since JDK 1.7
* @since JDK 1.6
* @see<a href=
* "http://mp.weixin.qq.com/wiki/17/304c1885ea66dbedf7dc170d84999a9d.html#.E8.AE.BE.E7.BD.AE.E6.89.80.E5.B1.9E.E8.A1.8C.E4.B8.9A"
* >所处行业</a>
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className KfOnlineStatus
* @author jy
* @date 2014年11月16日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum KfOnlineStatus {
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className Lang
* @author jy
* @date 2014年11月5日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum Lang {
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className SemCategory
* @author jy
* @date 2014年11月7日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum SemCategory {
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className ShareSourceType
* @author jy
* @date 2015年1月30日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum ShareSourceType {
@@ -7,7 +7,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className URLConsts
* @author jy
* @date 2014年12月3日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public final class URLConsts {
@@ -6,7 +6,7 @@ package com.foxinmy.weixin4j.mp.type;
* @className UserSourceType
* @author jy
* @date 2015年1月25日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public enum UserSourceType {
@@ -19,7 +19,7 @@ import com.foxinmy.weixin4j.type.MPPaymentCheckNameType;
* @className CashTest
* @author jy
* @date 2015年4月1日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class CashTest extends PayTest {
@@ -20,7 +20,7 @@ import com.foxinmy.weixin4j.util.DateUtil;
* @className CouponTest
* @author jy
* @date 2015年3月25日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class CouponTest extends PayTest {
@@ -23,7 +23,7 @@ import com.foxinmy.weixin4j.mp.model.KfSession;
* @className MessageNotifyTest
* @author jy.hu
* @date 2014年4月10日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class CustomTest extends TokenTest {
@@ -19,7 +19,7 @@ import com.foxinmy.weixin4j.mp.type.DatacubeType;
* @className DataApiTest
* @author jy
* @date 2015年1月25日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
@SuppressWarnings("unchecked")
@@ -17,7 +17,7 @@ import com.foxinmy.weixin4j.mp.model.Group;
* @className GroupTest
* @author jy.hu
* @date 2014年4月10日
* @since JDK 1.7
* @since JDK 1.6
*/
public class GroupTest extends TokenTest {
private GroupApi groupApi;
@@ -25,7 +25,7 @@ import com.foxinmy.weixin4j.tuple.Text;
* @className MpNewsTest
* @author jy
* @date 2014年4月27日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class MassTest extends TokenTest {
@@ -30,7 +30,7 @@ import com.foxinmy.weixin4j.type.MediaType;
* @className MediaTest
* @author jy.hu
* @date 2014年4月10日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class MediaTest extends TokenTest {
@@ -19,7 +19,7 @@ import com.foxinmy.weixin4j.type.ButtonType;
* @className MenuTest
* @author jy.hu
* @date 2014年4月10日
* @since JDK 1.7
* @since JDK 1.6
*/
public class MenuTest extends TokenTest {
@@ -34,12 +34,16 @@ public class MenuTest extends TokenTest {
@Test
public void create() throws WeixinException {
btnList = new ArrayList<Button>();
String domain = "http://dianzhang.canyi.net";
String domain = "http://wx.jdxg.doubimeizhi.com";
btnList.add(new Button("立即下单", domain, ButtonType.view));
btnList.add(new Button("个人中心", domain + "/user", ButtonType.view));
btnList.add(new Button("小哥介绍", domain, ButtonType.view));
Button button = new Button("小哥介绍", domain, ButtonType.view);
button.pushSub(new Button("小哥介绍", "http://mp.weixin.qq.com/s?__biz=MzI2MTA5OTM4OQ==&mid=400990970&idx=1&sn=5c7fd72e782c49f7c933b91c63eddc80#rd", ButtonType.view));
button.pushSub(new Button("服务流程", "FLOW", ButtonType.click));
button.pushSub(new Button("在线客服", "KF", ButtonType.click));
btnList.add(button);
JsonResult result = menuApi.createMenu(btnList);
Assert.assertEquals(0, result.getCode());
@@ -27,7 +27,7 @@ import com.foxinmy.weixin4j.tuple.Voice;
* @className NotifyMsgTest
* @author jy.hu
* @date 2014年4月10日
* @since JDK 1.7
* @since JDK 1.6
* @see
*/
public class NotifyTest extends TokenTest {
@@ -17,7 +17,7 @@ import com.foxinmy.weixin4j.mp.model.QRParameter;
* @className QRTest
* @author jy.hu
* @date 2014年4月10日
* @since JDK 1.7
* @since JDK 1.6
*/
public class QRTest extends TokenTest {
private QrApi qrApi;
@@ -35,7 +35,7 @@ public class QRTest extends TokenTest {
@Test
public void forever_qr_int() throws WeixinException, IOException {
File file = qrApi.createQRFile(QRParameter.createPermanenceInt(1200));
File file = qrApi.createQRFile(QRParameter.createPermanenceInt(2));
Assert.assertTrue(file.exists());
}
@@ -17,7 +17,7 @@ import com.foxinmy.weixin4j.util.Weixin4jConfigUtil;
* @className TokenTest
* @author jy.hu
* @date 2014年4月10日
* @since JDK 1.7
* @since JDK 1.6
*/
public class TokenTest {
@@ -17,7 +17,7 @@ import com.foxinmy.weixin4j.mp.model.User;
* @className UserTest
* @author jy.hu
* @date 2014年4月10日
* @since JDK 1.7
* @since JDK 1.6
*/
public class UserTest extends TokenTest {
private UserApi userApi;