Home > Back-end >  Get the current token object weixin4j package
Get the current token object weixin4j package

Time:12-09

Company itself and the project USES the weixin4j package, then WeChat synchronization function with the inside of the bag by the user, but in dealing with business to get a token, would lead to the synchronous operation failed, the reason is because weixin4j package the token inside because we have to get a result in failure, but there is no processing, it USES the or overdue token, because the object was not to the expiration time, so it did not get back, so I want to change my present logic code, let him get token, also take weixin4j token objects, the official document is written so ,
But I have a question, I don't need after the implementation of the ITokenLoader interface method of implementation? So what should I get the current token object?
Weixin4j website address - open & gt; http://www.weixin4j.org/doc7.html
  • Related