Class WeixinTicketCreator

  • All Implemented Interfaces:
    com.foxinmy.weixin4j.cache.CacheCreator<com.foxinmy.weixin4j.model.Token>

    public class WeixinTicketCreator
    extends com.foxinmy.weixin4j.token.TokenCreator
    微信企业号TICKET创建(包括jsticket、其它JSSDK所需的ticket的创建
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    See Also:
    JSTICKET
    • Constructor Detail

      • WeixinTicketCreator

        public WeixinTicketCreator​(com.foxinmy.weixin4j.type.TicketType ticketType,
                                   com.foxinmy.weixin4j.token.TokenManager weixinTokenManager)
        Parameters:
        ticketType - 票据类型
        weixinTokenManager - 企业号的access_token
    • Method Detail

      • name

        public String name()
        Specified by:
        name in class com.foxinmy.weixin4j.token.TokenCreator
      • uniqueid

        public String uniqueid()
        Specified by:
        uniqueid in class com.foxinmy.weixin4j.token.TokenCreator
      • create

        public com.foxinmy.weixin4j.model.Token create()
                                                throws com.foxinmy.weixin4j.exception.WeixinException
        Throws:
        com.foxinmy.weixin4j.exception.WeixinException