Search in sources :

Example 6 with WxMpQrCodeTicket

use of me.chanjar.weixin.mp.bean.result.WxMpQrCodeTicket in project weixin-java-tools by chanjarster.

the class WxMpQrCodeAPITest method testQrCodeCreateLastTicket.

public void testQrCodeCreateLastTicket() throws WxErrorException {
    WxMpQrCodeTicket ticket = wxService.qrCodeCreateLastTicket(1);
    Assert.assertNotNull(ticket.getUrl());
    Assert.assertNotNull(ticket.getTicket());
    Assert.assertTrue(ticket.getExpire_seconds() == -1);
}
Also used : WxMpQrCodeTicket(me.chanjar.weixin.mp.bean.result.WxMpQrCodeTicket)

Aggregations

WxMpQrCodeTicket (me.chanjar.weixin.mp.bean.result.WxMpQrCodeTicket)6 AgentBean (com.code.server.constant.game.AgentBean)2 WxErrorException (me.chanjar.weixin.common.exception.WxErrorException)2 TextBuilder (com.code.server.login.wechat.builder.TextBuilder)1 File (java.io.File)1 Random (java.util.Random)1 WxMpXmlOutNewsMessage (me.chanjar.weixin.mp.bean.message.WxMpXmlOutNewsMessage)1 WxMpUser (me.chanjar.weixin.mp.bean.result.WxMpUser)1