修复过期方法

This commit is contained in:
xingyu4j
2022-12-01 10:49:56 +08:00
parent 79df30d0f8
commit 80db91ea97
18 changed files with 344 additions and 28 deletions

View File

@@ -63,7 +63,7 @@
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-pay</artifactId>
<version>4.3.8.B</version>
<version>4.4.0</version>
</dependency>
<!-- TODO 芋艿:清理 -->

View File

@@ -45,6 +45,7 @@ public class YudaoAuthRequestFactory extends AuthRequestFactory {
* @param source {@link AuthSource}
* @return {@link AuthRequest}
*/
@Override
public AuthRequest get(String source) {
// 先尝试获取自定义扩展的
AuthRequest authRequest = getExtendRequest(source);

View File

@@ -35,7 +35,7 @@
<groupId>com.github.binarywang</groupId>
<!-- <artifactId>weixin-java-mp</artifactId>-->
<artifactId>wx-java-mp-spring-boot-starter</artifactId>
<version>4.3.8.B</version>
<version>4.4.0</version>
</dependency>
<!-- TODO 芋艿:清理 -->
</dependencies>

View File

@@ -18,18 +18,18 @@ public class EnvContextHolder {
*
* 使用 {@link List} 的原因,可能存在多层设置或者清理
*/
private static final ThreadLocal<List<String>> tagContext = TransmittableThreadLocal.withInitial(ArrayList::new);
private static final ThreadLocal<List<String>> TAG_CONTEXT = TransmittableThreadLocal.withInitial(ArrayList::new);
public static void setTag(String tag) {
tagContext.get().add(tag);
TAG_CONTEXT.get().add(tag);
}
public static String getTag() {
return CollUtil.getLast(tagContext.get());
return CollUtil.getLast(TAG_CONTEXT.get());
}
public static void removeTag() {
List<String> tags = tagContext.get();
List<String> tags = TAG_CONTEXT.get();
if (CollUtil.isEmpty(tags)) {
return;
}