mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-07 09:18:27 +08:00
commit
21422b02aa
@ -14,7 +14,7 @@
|
|||||||
- 修改喜马拉雅配置参数,将`ClientOsType`参数提到 AuthConfig 中
|
- 修改喜马拉雅配置参数,将`ClientOsType`参数提到 AuthConfig 中
|
||||||
- AuthChecker 中增加对喜马拉雅平台的校验
|
- AuthChecker 中增加对喜马拉雅平台的校验
|
||||||
- 升级 facebook api 版本到 v9.0,解决 Gitee Issue [#I2AR5S](https://gitee.com/yadong.zhang/JustAuth/issues/I2AR5S)
|
- 升级 facebook api 版本到 v9.0,解决 Gitee Issue [#I2AR5S](https://gitee.com/yadong.zhang/JustAuth/issues/I2AR5S)
|
||||||
- 修改原来的企业微信 Request 类名为 `AuthWeChatEnterpriseQrcodeRequest`,升级后注意该点
|
- !!!**注意**!!!修改原来的企业微信 Request 类名为 `AuthWeChatEnterpriseQrcodeRequest`,升级后注意该点
|
||||||
|
|
||||||
注意:可能有些开发者对于 JA 集成的四个微信平台不太理解,这儿统一说明:
|
注意:可能有些开发者对于 JA 集成的四个微信平台不太理解,这儿统一说明:
|
||||||
- 按照类名
|
- 按照类名
|
||||||
|
|||||||
4
pom.xml
4
pom.xml
@ -133,10 +133,6 @@
|
|||||||
<goals>
|
<goals>
|
||||||
<goal>jar</goal>
|
<goal>jar</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
|
||||||
<!-- add this to disable checking -->
|
|
||||||
<additionalparam>-Xdoclint:none</additionalparam>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|||||||
33
src/main/java/me/zhyd/oauth/config/JustAuthLogConfig.java
Normal file
33
src/main/java/me/zhyd/oauth/config/JustAuthLogConfig.java
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
package me.zhyd.oauth.config;
|
||||||
|
|
||||||
|
import me.zhyd.oauth.log.Log;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* JustAuth 日志配置类
|
||||||
|
* @author HeJin
|
||||||
|
* @date 2021/1/9 20:28
|
||||||
|
*/
|
||||||
|
public class JustAuthLogConfig {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设置日志级别
|
||||||
|
* @param level 日志级别
|
||||||
|
*/
|
||||||
|
public static void setLevel(Log.Level level){
|
||||||
|
Log.Config.level = level;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关闭日志
|
||||||
|
*/
|
||||||
|
public static void disable(){
|
||||||
|
Log.Config.enable = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开启日志
|
||||||
|
*/
|
||||||
|
public static void enable(){
|
||||||
|
Log.Config.enable = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -136,15 +136,15 @@ public class Log {
|
|||||||
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
|
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
|
||||||
* @since 1.10.0
|
* @since 1.10.0
|
||||||
*/
|
*/
|
||||||
static class Config {
|
public static class Config {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 需要打印的日志级别
|
* 需要打印的日志级别
|
||||||
*/
|
*/
|
||||||
static Level level = Level.DEBUG;
|
public static Level level = Level.DEBUG;
|
||||||
/**
|
/**
|
||||||
* 是否启用日志打印功能,默认启用
|
* 是否启用日志打印功能,默认启用
|
||||||
*/
|
*/
|
||||||
static boolean enable = true;
|
public static boolean enable = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/**
|
/**
|
||||||
* 针对JustAuth简单封装的日志打印工具,可用过{@link me.zhyd.oauth.log.Log.Config}开关日志和指定日志级别
|
* 针对JustAuth简单封装的日志打印工具,可用过{@link me.zhyd.oauth.config.JustAuthLogConfig}开关日志和指定日志级别
|
||||||
*/
|
*/
|
||||||
package me.zhyd.oauth.log;
|
package me.zhyd.oauth.log;
|
||||||
|
|||||||
@ -222,7 +222,7 @@ public class GlobalAuthUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 喜马拉雅签名算法
|
* 喜马拉雅签名算法
|
||||||
* https://open.ximalaya.com/doc/detailApi?categoryId=6&articleId=69
|
* {@code https://open.ximalaya.com/doc/detailApi?categoryId=6&articleId=69}
|
||||||
*
|
*
|
||||||
* @param params 加密参数
|
* @param params 加密参数
|
||||||
* @param clientSecret 平台应用的授权key
|
* @param clientSecret 平台应用的授权key
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user