File tree Expand file tree Collapse file tree 3 files changed +1
-21
lines changed
main/java/me/chanjar/weixin/mp/api
test/java/me/chanjar/weixin/mp/api/test Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,6 @@ public String getAccessToken() {
51
51
return this .accessToken ;
52
52
}
53
53
54
- public void setAccessToken (String accessToken ) {
55
- this .accessToken = accessToken ;
56
- }
57
-
58
54
@ Override
59
55
public Lock getAccessTokenLock () {
60
56
return this .accessTokenLock ;
@@ -86,23 +82,11 @@ public String getJsapiTicket() {
86
82
return this .jsapiTicket ;
87
83
}
88
84
89
- public void setJsapiTicket (String jsapiTicket ) {
90
- this .jsapiTicket = jsapiTicket ;
91
- }
92
-
93
85
@ Override
94
86
public Lock getJsapiTicketLock () {
95
87
return this .jsapiTicketLock ;
96
88
}
97
89
98
- public long getJsapiTicketExpiresTime () {
99
- return this .jsapiTicketExpiresTime ;
100
- }
101
-
102
- public void setJsapiTicketExpiresTime (long jsapiTicketExpiresTime ) {
103
- this .jsapiTicketExpiresTime = jsapiTicketExpiresTime ;
104
- }
105
-
106
90
@ Override
107
91
public boolean isJsapiTicketExpired () {
108
92
return System .currentTimeMillis () > this .jsapiTicketExpiresTime ;
Original file line number Diff line number Diff line change 28
28
import java .io .IOException ;
29
29
import java .util .concurrent .locks .Lock ;
30
30
31
- //import org.apache.http.conn.ssl.DefaultHostnameVerifier;
32
- //import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
33
-
34
31
public class WxMpServiceImpl implements WxMpService {
35
32
36
33
private static final JsonParser JSON_PARSER = new JsonParser ();
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ public class ApiTestModule implements Module {
17
17
@ Override
18
18
public void configure (Binder binder ) {
19
19
try (InputStream is1 = ClassLoader .getSystemResourceAsStream ("test-config.xml" )) {
20
- TestConfigStorage config = this
21
- .fromXml (TestConfigStorage .class , is1 );
20
+ TestConfigStorage config = this .fromXml (TestConfigStorage .class , is1 );
22
21
config .setAccessTokenLock (new ReentrantLock ());
23
22
WxMpService wxService = new WxMpServiceImpl ();
24
23
wxService .setWxMpConfigStorage (config );
You can’t perform that action at this time.
0 commit comments