Skip to content

Commit 1001158

Browse files
committed
🎨 优化规范部分代码
1 parent f40547a commit 1001158

5 files changed

Lines changed: 14 additions & 9 deletions

File tree

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@
276276
<version>1.18.8</version>
277277
<scope>provided</scope>
278278
</dependency>
279+
<dependency>
280+
<groupId>org.bouncycastle</groupId>
281+
<artifactId>bcpkix-jdk15on</artifactId>
282+
<version>1.68</version>
283+
</dependency>
279284
</dependencies>
280285
</dependencyManagement>
281286

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/WxCpTpService.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ public interface WxCpTpService {
8686
* @param forceRefresh 强制刷新
8787
* @return the suite ticket
8888
* @throws WxErrorException the wx error exception
89-
* @deprecated 由于无法主动刷新 ,所以这个接口实际已经没有意义,需要在接收企业微信的主动推送后,保存这个ticket
9089
* @see #setSuiteTicket(String) #setSuiteTicket(String)
90+
* @deprecated 由于无法主动刷新 ,所以这个接口实际已经没有意义,需要在接收企业微信的主动推送后,保存这个ticket
9191
*/
9292
@Deprecated
9393
String getSuiteTicket(boolean forceRefresh) throws WxErrorException;
@@ -127,12 +127,12 @@ public interface WxCpTpService {
127127
/**
128128
* 获取企业凭证
129129
*
130-
* @param authCorpid 授权方corpid
130+
* @param authCorpId 授权方corpid
131131
* @param permanentCode 永久授权码,通过get_permanent_code获取
132132
* @return the corp token
133133
* @throws WxErrorException the wx error exception
134134
*/
135-
WxAccessToken getCorpToken(String authCorpid, String permanentCode) throws WxErrorException;
135+
WxAccessToken getCorpToken(String authCorpId, String permanentCode) throws WxErrorException;
136136

137137
/**
138138
* 获取企业永久授权码 .
@@ -178,7 +178,8 @@ public interface WxCpTpService {
178178
* @param authType 授权类型:0 正式授权, 1 测试授权。
179179
* @return pre auth url
180180
* @throws WxErrorException the wx error exception
181-
* @Link https ://work.weixin.qq.com/api/doc/90001/90143/90602 </pre>
181+
* @link https ://work.weixin.qq.com/api/doc/90001/90143/90602
182+
* </pre>
182183
*/
183184
String getPreAuthUrl(String redirectUri, String state, int authType) throws WxErrorException;
184185

@@ -317,8 +318,9 @@ public interface WxCpTpService {
317318

318319
/**
319320
* 获取登录用户信息
320-
*
321+
* <p>
321322
* 文档地址:https://work.weixin.qq.com/api/doc/90001/90143/91125
323+
*
322324
* @param authCode the auth code
323325
* @return login info
324326
* @throws WxErrorException the wx error exception

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ public WxCpMaJsCode2SessionResult jsCode2Session(String jsCode) throws WxErrorEx
184184

185185

186186
@Override
187-
public WxAccessToken getCorpToken(String authCorpid, String permanentCode) throws WxErrorException {
187+
public WxAccessToken getCorpToken(String authCorpId, String permanentCode) throws WxErrorException {
188188
JsonObject jsonObject = new JsonObject();
189-
jsonObject.addProperty("auth_corpid", authCorpid);
189+
jsonObject.addProperty("auth_corpid", authCorpId);
190190
jsonObject.addProperty("permanent_code", permanentCode);
191191
String result = post(configStorage.getApiUrl(GET_CORP_TOKEN), jsonObject.toString());
192192

weixin-java-miniapp/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
<dependency>
7575
<groupId>org.bouncycastle</groupId>
7676
<artifactId>bcpkix-jdk15on</artifactId>
77-
<version>1.65</version>
7877
</dependency>
7978
<dependency>
8079
<groupId>org.projectlombok</groupId>

weixin-java-pay/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
<dependency>
4444
<groupId>org.bouncycastle</groupId>
4545
<artifactId>bcpkix-jdk15on</artifactId>
46-
<version>1.65</version>
4746
</dependency>
4847

4948
<dependency>

0 commit comments

Comments
 (0)