🎨 优化规范部分代码

This commit is contained in:
Binary Wang 2021-02-06 22:27:32 +08:00
parent f40547a459
commit 1001158231
5 changed files with 14 additions and 9 deletions

View File

@ -276,6 +276,11 @@
<version>1.18.8</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.68</version>
</dependency>
</dependencies>
</dependencyManagement>

View File

@ -86,8 +86,8 @@ public interface WxCpTpService {
* @param forceRefresh 强制刷新
* @return the suite ticket
* @throws WxErrorException the wx error exception
* @deprecated 由于无法主动刷新 所以这个接口实际已经没有意义需要在接收企业微信的主动推送后保存这个ticket
* @see #setSuiteTicket(String) #setSuiteTicket(String)
* @deprecated 由于无法主动刷新 所以这个接口实际已经没有意义需要在接收企业微信的主动推送后保存这个ticket
*/
@Deprecated
String getSuiteTicket(boolean forceRefresh) throws WxErrorException;
@ -127,12 +127,12 @@ public interface WxCpTpService {
/**
* 获取企业凭证
*
* @param authCorpid 授权方corpid
* @param authCorpId 授权方corpid
* @param permanentCode 永久授权码通过get_permanent_code获取
* @return the corp token
* @throws WxErrorException the wx error exception
*/
WxAccessToken getCorpToken(String authCorpid, String permanentCode) throws WxErrorException;
WxAccessToken getCorpToken(String authCorpId, String permanentCode) throws WxErrorException;
/**
* 获取企业永久授权码 .
@ -178,7 +178,8 @@ public interface WxCpTpService {
* @param authType 授权类型0 正式授权 1 测试授权
* @return pre auth url
* @throws WxErrorException the wx error exception
* @Link https ://work.weixin.qq.com/api/doc/90001/90143/90602 </pre>
* @link https ://work.weixin.qq.com/api/doc/90001/90143/90602
* </pre>
*/
String getPreAuthUrl(String redirectUri, String state, int authType) throws WxErrorException;
@ -317,8 +318,9 @@ public interface WxCpTpService {
/**
* 获取登录用户信息
*
* <p>
* 文档地址https://work.weixin.qq.com/api/doc/90001/90143/91125
*
* @param authCode the auth code
* @return login info
* @throws WxErrorException the wx error exception

View File

@ -184,9 +184,9 @@ public abstract class BaseWxCpTpServiceImpl<H, P> implements WxCpTpService, Requ
@Override
public WxAccessToken getCorpToken(String authCorpid, String permanentCode) throws WxErrorException {
public WxAccessToken getCorpToken(String authCorpId, String permanentCode) throws WxErrorException {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("auth_corpid", authCorpid);
jsonObject.addProperty("auth_corpid", authCorpId);
jsonObject.addProperty("permanent_code", permanentCode);
String result = post(configStorage.getApiUrl(GET_CORP_TOKEN), jsonObject.toString());

View File

@ -74,7 +74,6 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.65</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>

View File

@ -43,7 +43,6 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.65</version>
</dependency>
<dependency>