Commit c95a1d0a7d29bdf1b13aef2d6b2a887c09f0c175
1 parent
6c5ea2bc
chore: up springboot 2.10.13
Showing
15 changed files
with
71 additions
and
60 deletions
README.md
| @@ -249,9 +249,9 @@ ps:核心功能已经实现,正在对接微信小程序中... | @@ -249,9 +249,9 @@ ps:核心功能已经实现,正在对接微信小程序中... | ||
| 249 | 249 | ||
| 250 | | 框架 | 说明 | 版本 | 学习指南 | | 250 | | 框架 | 说明 | 版本 | 学习指南 | |
| 251 | |---------------------------------------------------------------------------------------------|------------------|-------------|----------------------------------------------------------------| | 251 | |---------------------------------------------------------------------------------------------|------------------|-------------|----------------------------------------------------------------| |
| 252 | -| [Spring Boot](https://spring.io/projects/spring-boot) | 应用开发框架 | 2.7.12 | [文档](https://github.com/YunaiV/SpringBoot-Labs) | | 252 | +| [Spring Boot](https://spring.io/projects/spring-boot) | 应用开发框架 | 2.7.13 | [文档](https://github.com/YunaiV/SpringBoot-Labs) | |
| 253 | | [MySQL](https://www.mysql.com/cn/) | 数据库服务器 | 5.7 / 8.0+ | | | 253 | | [MySQL](https://www.mysql.com/cn/) | 数据库服务器 | 5.7 / 8.0+ | | |
| 254 | -| [Druid](https://github.com/alibaba/druid) | JDBC 连接池、监控组件 | 1.2.16 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | | 254 | +| [Druid](https://github.com/alibaba/druid) | JDBC 连接池、监控组件 | 1.2.18 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | |
| 255 | | [MyBatis Plus](https://mp.baomidou.com/) | MyBatis 增强工具包 | 3.5.3.1 | [文档](http://www.iocoder.cn/Spring-Boot/MyBatis/?yudao) | | 255 | | [MyBatis Plus](https://mp.baomidou.com/) | MyBatis 增强工具包 | 3.5.3.1 | [文档](http://www.iocoder.cn/Spring-Boot/MyBatis/?yudao) | |
| 256 | | [Dynamic Datasource](https://dynamic-datasource.com/) | 动态数据源 | 3.6.1 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | | 256 | | [Dynamic Datasource](https://dynamic-datasource.com/) | 动态数据源 | 3.6.1 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | |
| 257 | | [Redis](https://redis.io/) | key-value 数据库 | 5.0 / 6.0 | | | 257 | | [Redis](https://redis.io/) | key-value 数据库 | 5.0 / 6.0 | | |
| @@ -267,7 +267,7 @@ ps:核心功能已经实现,正在对接微信小程序中... | @@ -267,7 +267,7 @@ ps:核心功能已经实现,正在对接微信小程序中... | ||
| 267 | | [Spring Boot Admin](https://github.com/codecentric/spring-boot-admin) | Spring Boot 监控平台 | 2.7.10 | [文档](http://www.iocoder.cn/Spring-Boot/Admin/?yudao) | | 267 | | [Spring Boot Admin](https://github.com/codecentric/spring-boot-admin) | Spring Boot 监控平台 | 2.7.10 | [文档](http://www.iocoder.cn/Spring-Boot/Admin/?yudao) | |
| 268 | | [Jackson](https://github.com/FasterXML/jackson) | JSON 工具库 | 2.13.3 | | | 268 | | [Jackson](https://github.com/FasterXML/jackson) | JSON 工具库 | 2.13.3 | | |
| 269 | | [MapStruct](https://mapstruct.org/) | Java Bean 转换 | 1.5.5.Final | [文档](http://www.iocoder.cn/Spring-Boot/MapStruct/?yudao) | | 269 | | [MapStruct](https://mapstruct.org/) | Java Bean 转换 | 1.5.5.Final | [文档](http://www.iocoder.cn/Spring-Boot/MapStruct/?yudao) | |
| 270 | -| [Lombok](https://projectlombok.org/) | 消除冗长的 Java 代码 | 1.18.26 | [文档](http://www.iocoder.cn/Spring-Boot/Lombok/?yudao) | | 270 | +| [Lombok](https://projectlombok.org/) | 消除冗长的 Java 代码 | 1.18.28 | [文档](http://www.iocoder.cn/Spring-Boot/Lombok/?yudao) | |
| 271 | | [JUnit](https://junit.org/junit5/) | Java 单元测试框架 | 5.8.2 | - | | 271 | | [JUnit](https://junit.org/junit5/) | Java 单元测试框架 | 5.8.2 | - | |
| 272 | | [Mockito](https://github.com/mockito/mockito) | Java Mock 框架 | 4.8.0 | - | | 272 | | [Mockito](https://github.com/mockito/mockito) | Java Mock 框架 | 4.8.0 | - | |
| 273 | 273 |
pom.xml
| @@ -38,8 +38,8 @@ | @@ -38,8 +38,8 @@ | ||
| 38 | <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version> | 38 | <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version> |
| 39 | <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> | 39 | <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> |
| 40 | <!-- 看看咋放到 bom 里 --> | 40 | <!-- 看看咋放到 bom 里 --> |
| 41 | - <lombok.version>1.18.26</lombok.version> | ||
| 42 | - <spring.boot.version>2.7.12</spring.boot.version> | 41 | + <lombok.version>1.18.28</lombok.version> |
| 42 | + <spring.boot.version>2.7.13</spring.boot.version> | ||
| 43 | <mapstruct.version>1.5.5.Final</mapstruct.version> | 43 | <mapstruct.version>1.5.5.Final</mapstruct.version> |
| 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 45 | </properties> | 45 | </properties> |
| @@ -96,9 +96,14 @@ | @@ -96,9 +96,14 @@ | ||
| 96 | </pluginManagement> | 96 | </pluginManagement> |
| 97 | </build> | 97 | </build> |
| 98 | 98 | ||
| 99 | - <!-- 使用 aliyun 的 Maven 源,提升下载速度 --> | 99 | + <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 --> |
| 100 | <repositories> | 100 | <repositories> |
| 101 | <repository> | 101 | <repository> |
| 102 | + <id>huaweicloud</id> | ||
| 103 | + <name>huawei</name> | ||
| 104 | + <url>https://mirrors.huaweicloud.com/repository/maven/</url> | ||
| 105 | + </repository> | ||
| 106 | + <repository> | ||
| 102 | <id>aliyunmaven</id> | 107 | <id>aliyunmaven</id> |
| 103 | <name>aliyun</name> | 108 | <name>aliyun</name> |
| 104 | <url>https://maven.aliyun.com/repository/public</url> | 109 | <url>https://maven.aliyun.com/repository/public</url> |
yudao-dependencies/pom.xml
| @@ -16,17 +16,17 @@ | @@ -16,17 +16,17 @@ | ||
| 16 | <properties> | 16 | <properties> |
| 17 | <revision>1.7.3-snapshot</revision> | 17 | <revision>1.7.3-snapshot</revision> |
| 18 | <!-- 统一依赖管理 --> | 18 | <!-- 统一依赖管理 --> |
| 19 | - <spring.boot.version>2.7.12</spring.boot.version> | 19 | + <spring.boot.version>2.7.13</spring.boot.version> |
| 20 | <!-- Web 相关 --> | 20 | <!-- Web 相关 --> |
| 21 | <springdoc.version>1.6.15</springdoc.version> | 21 | <springdoc.version>1.6.15</springdoc.version> |
| 22 | <knife4j.version>4.1.0</knife4j.version> | 22 | <knife4j.version>4.1.0</knife4j.version> |
| 23 | <servlet.versoin>2.5</servlet.versoin> | 23 | <servlet.versoin>2.5</servlet.versoin> |
| 24 | <!-- DB 相关 --> | 24 | <!-- DB 相关 --> |
| 25 | - <druid.version>1.2.16</druid.version> | 25 | + <druid.version>1.2.18</druid.version> |
| 26 | <mybatis-plus.version>3.5.3.1</mybatis-plus.version> | 26 | <mybatis-plus.version>3.5.3.1</mybatis-plus.version> |
| 27 | <mybatis-plus-generator.version>3.5.3.1</mybatis-plus-generator.version> | 27 | <mybatis-plus-generator.version>3.5.3.1</mybatis-plus-generator.version> |
| 28 | <dynamic-datasource.version>3.6.1</dynamic-datasource.version> | 28 | <dynamic-datasource.version>3.6.1</dynamic-datasource.version> |
| 29 | - <mybatis-plus-join-boot-starter.version>1.4.3.2</mybatis-plus-join-boot-starter.version> | 29 | + <mybatis-plus-join-boot-starter.version>1.4.5</mybatis-plus-join-boot-starter.version> |
| 30 | <redisson.version>3.18.0</redisson.version> | 30 | <redisson.version>3.18.0</redisson.version> |
| 31 | <dm8.jdbc.version>8.1.2.141</dm8.jdbc.version> | 31 | <dm8.jdbc.version>8.1.2.141</dm8.jdbc.version> |
| 32 | <!-- 服务保障相关 --> | 32 | <!-- 服务保障相关 --> |
| @@ -43,16 +43,16 @@ | @@ -43,16 +43,16 @@ | ||
| 43 | <!-- Bpm 工作流相关 --> | 43 | <!-- Bpm 工作流相关 --> |
| 44 | <flowable.version>6.8.0</flowable.version> | 44 | <flowable.version>6.8.0</flowable.version> |
| 45 | <!-- 工具类相关 --> | 45 | <!-- 工具类相关 --> |
| 46 | - <captcha-plus.version>1.0.2</captcha-plus.version> | 46 | + <captcha-plus.version>1.0.5</captcha-plus.version> |
| 47 | <jsoup.version>1.15.4</jsoup.version> | 47 | <jsoup.version>1.15.4</jsoup.version> |
| 48 | - <lombok.version>1.18.26</lombok.version> | 48 | + <lombok.version>1.18.28</lombok.version> |
| 49 | <mapstruct.version>1.5.5.Final</mapstruct.version> | 49 | <mapstruct.version>1.5.5.Final</mapstruct.version> |
| 50 | - <hutool.version>5.8.18</hutool.version> | ||
| 51 | - <easyexcel.verion>3.3.1</easyexcel.verion> | 50 | + <hutool.version>5.8.20</hutool.version> |
| 51 | + <easyexcel.verion>3.3.2</easyexcel.verion> | ||
| 52 | <velocity.version>2.3</velocity.version> | 52 | <velocity.version>2.3</velocity.version> |
| 53 | <screw.version>1.0.5</screw.version> | 53 | <screw.version>1.0.5</screw.version> |
| 54 | <fastjson.version>1.2.83</fastjson.version> | 54 | <fastjson.version>1.2.83</fastjson.version> |
| 55 | - <guava.version>32.0.0-jre</guava.version> | 55 | + <guava.version>32.0.1-jre</guava.version> |
| 56 | <guice.version>5.1.0</guice.version> | 56 | <guice.version>5.1.0</guice.version> |
| 57 | <transmittable-thread-local.version>2.14.2</transmittable-thread-local.version> | 57 | <transmittable-thread-local.version>2.14.2</transmittable-thread-local.version> |
| 58 | <commons-net.version>3.9.0</commons-net.version> | 58 | <commons-net.version>3.9.0</commons-net.version> |
| @@ -64,14 +64,14 @@ | @@ -64,14 +64,14 @@ | ||
| 64 | <okio.version>3.0.0</okio.version> | 64 | <okio.version>3.0.0</okio.version> |
| 65 | <okhttp3.version>4.10.0</okhttp3.version> | 65 | <okhttp3.version>4.10.0</okhttp3.version> |
| 66 | <commons-io.version>2.11.0</commons-io.version> | 66 | <commons-io.version>2.11.0</commons-io.version> |
| 67 | - <minio.version>8.5.2</minio.version> | 67 | + <minio.version>8.5.4</minio.version> |
| 68 | <aliyun-java-sdk-core.version>4.6.3</aliyun-java-sdk-core.version> | 68 | <aliyun-java-sdk-core.version>4.6.3</aliyun-java-sdk-core.version> |
| 69 | <aliyun-java-sdk-dysmsapi.version>2.2.1</aliyun-java-sdk-dysmsapi.version> | 69 | <aliyun-java-sdk-dysmsapi.version>2.2.1</aliyun-java-sdk-dysmsapi.version> |
| 70 | <tencentcloud-sdk-java.version>3.1.758</tencentcloud-sdk-java.version> | 70 | <tencentcloud-sdk-java.version>3.1.758</tencentcloud-sdk-java.version> |
| 71 | - <justauth.version>1.4.0</justauth.version> | ||
| 72 | - <jimureport.version>1.5.6</jimureport.version> | 71 | + <justauth.version>1.0.1</justauth.version> |
| 72 | + <jimureport.version>1.5.8</jimureport.version> | ||
| 73 | <xercesImpl.version>2.12.2</xercesImpl.version> | 73 | <xercesImpl.version>2.12.2</xercesImpl.version> |
| 74 | - <wx-java-mp.version>4.3.0</wx-java-mp.version> | 74 | + <wx-java-mp.version>4.5.0</wx-java-mp.version> |
| 75 | </properties> | 75 | </properties> |
| 76 | 76 | ||
| 77 | <dependencyManagement> | 77 | <dependencyManagement> |
| @@ -589,8 +589,8 @@ | @@ -589,8 +589,8 @@ | ||
| 589 | <!-- SMS SDK end --> | 589 | <!-- SMS SDK end --> |
| 590 | 590 | ||
| 591 | <dependency> | 591 | <dependency> |
| 592 | - <groupId>com.xkcoding.justauth</groupId> | ||
| 593 | - <artifactId>justauth-spring-boot-starter</artifactId> <!-- 社交登陆(例如说,个人微信、企业微信等等) --> | 592 | + <groupId>com.xingyuv</groupId> |
| 593 | + <artifactId>spring-boot-starter-justauth</artifactId> <!-- 社交登陆(例如说,个人微信、企业微信等等) --> | ||
| 594 | <version>${justauth.version}</version> | 594 | <version>${justauth.version}</version> |
| 595 | </dependency> | 595 | </dependency> |
| 596 | 596 |
yudao-example/yudao-sso-demo-by-code/pom.xml
| @@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
| 21 | <maven.compiler.target>8</maven.compiler.target> | 21 | <maven.compiler.target>8</maven.compiler.target> |
| 22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 23 | <!-- 统一依赖管理 --> | 23 | <!-- 统一依赖管理 --> |
| 24 | - <spring.boot.version>2.7.12</spring.boot.version> | 24 | + <spring.boot.version>2.7.13</spring.boot.version> |
| 25 | </properties> | 25 | </properties> |
| 26 | 26 | ||
| 27 | <dependencyManagement> | 27 | <dependencyManagement> |
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | <dependency> | 52 | <dependency> |
| 53 | <groupId>cn.hutool</groupId> | 53 | <groupId>cn.hutool</groupId> |
| 54 | <artifactId>hutool-all</artifactId> | 54 | <artifactId>hutool-all</artifactId> |
| 55 | - <version>5.8.18</version> | 55 | + <version>5.8.20</version> |
| 56 | </dependency> | 56 | </dependency> |
| 57 | 57 | ||
| 58 | <dependency> | 58 | <dependency> |
yudao-example/yudao-sso-demo-by-password/pom.xml
| @@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
| 21 | <maven.compiler.target>8</maven.compiler.target> | 21 | <maven.compiler.target>8</maven.compiler.target> |
| 22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 23 | <!-- 统一依赖管理 --> | 23 | <!-- 统一依赖管理 --> |
| 24 | - <spring.boot.version>2.7.12</spring.boot.version> | 24 | + <spring.boot.version>2.7.13</spring.boot.version> |
| 25 | </properties> | 25 | </properties> |
| 26 | 26 | ||
| 27 | <dependencyManagement> | 27 | <dependencyManagement> |
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | <dependency> | 52 | <dependency> |
| 53 | <groupId>cn.hutool</groupId> | 53 | <groupId>cn.hutool</groupId> |
| 54 | <artifactId>hutool-all</artifactId> | 54 | <artifactId>hutool-all</artifactId> |
| 55 | - <version>5.8.18</version> | 55 | + <version>5.8.20</version> |
| 56 | </dependency> | 56 | </dependency> |
| 57 | 57 | ||
| 58 | <dependency> | 58 | <dependency> |
yudao-framework/yudao-spring-boot-starter-biz-pay/pom.xml
| @@ -63,7 +63,7 @@ | @@ -63,7 +63,7 @@ | ||
| 63 | <dependency> | 63 | <dependency> |
| 64 | <groupId>com.github.binarywang</groupId> | 64 | <groupId>com.github.binarywang</groupId> |
| 65 | <artifactId>weixin-java-pay</artifactId> | 65 | <artifactId>weixin-java-pay</artifactId> |
| 66 | - <version>4.4.0</version> | 66 | + <version>4.5.0</version> |
| 67 | </dependency> | 67 | </dependency> |
| 68 | <!-- TODO 芋艿:清理 --> | 68 | <!-- TODO 芋艿:清理 --> |
| 69 | 69 |
yudao-framework/yudao-spring-boot-starter-biz-social/pom.xml
| @@ -36,8 +36,8 @@ | @@ -36,8 +36,8 @@ | ||
| 36 | </dependency> | 36 | </dependency> |
| 37 | <!-- 三方云服务相关 --> | 37 | <!-- 三方云服务相关 --> |
| 38 | <dependency> | 38 | <dependency> |
| 39 | - <groupId>com.xkcoding.justauth</groupId> | ||
| 40 | - <artifactId>justauth-spring-boot-starter</artifactId> | 39 | + <groupId>com.xingyuv</groupId> |
| 40 | + <artifactId>spring-boot-starter-justauth</artifactId> | ||
| 41 | <exclusions> | 41 | <exclusions> |
| 42 | <exclusion> | 42 | <exclusion> |
| 43 | <groupId>cn.hutool</groupId> | 43 | <groupId>cn.hutool</groupId> |
yudao-framework/yudao-spring-boot-starter-biz-social/src/main/java/cn/iocoder/yudao/framework/social/config/YudaoSocialAutoConfiguration.java
| 1 | package cn.iocoder.yudao.framework.social.config; | 1 | package cn.iocoder.yudao.framework.social.config; |
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.framework.social.core.YudaoAuthRequestFactory; | 3 | import cn.iocoder.yudao.framework.social.core.YudaoAuthRequestFactory; |
| 4 | -import com.xkcoding.http.HttpUtil; | ||
| 5 | -import com.xkcoding.http.support.hutool.HutoolImpl; | ||
| 6 | -import com.xkcoding.justauth.autoconfigure.JustAuthProperties; | 4 | +import com.xingyuv.http.HttpUtil; |
| 5 | +import com.xingyuv.http.support.hutool.HutoolImpl; | ||
| 6 | +import com.xingyuv.jushauth.cache.AuthStateCache; | ||
| 7 | +import com.xingyuv.justauth.autoconfigure.JustAuthProperties; | ||
| 7 | import lombok.extern.slf4j.Slf4j; | 8 | import lombok.extern.slf4j.Slf4j; |
| 8 | -import me.zhyd.oauth.cache.AuthStateCache; | ||
| 9 | import org.springframework.boot.autoconfigure.AutoConfiguration; | 9 | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| 10 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | 10 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| 11 | import org.springframework.boot.context.properties.EnableConfigurationProperties; | 11 | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
yudao-framework/yudao-spring-boot-starter-biz-social/src/main/java/cn/iocoder/yudao/framework/social/core/YudaoAuthRequestFactory.java
| @@ -4,12 +4,12 @@ import cn.hutool.core.util.EnumUtil; | @@ -4,12 +4,12 @@ import cn.hutool.core.util.EnumUtil; | ||
| 4 | import cn.hutool.core.util.ReflectUtil; | 4 | import cn.hutool.core.util.ReflectUtil; |
| 5 | import cn.iocoder.yudao.framework.social.core.enums.AuthExtendSource; | 5 | import cn.iocoder.yudao.framework.social.core.enums.AuthExtendSource; |
| 6 | import cn.iocoder.yudao.framework.social.core.request.AuthWeChatMiniAppRequest; | 6 | import cn.iocoder.yudao.framework.social.core.request.AuthWeChatMiniAppRequest; |
| 7 | -import com.xkcoding.justauth.AuthRequestFactory; | ||
| 8 | -import com.xkcoding.justauth.autoconfigure.JustAuthProperties; | ||
| 9 | -import me.zhyd.oauth.cache.AuthStateCache; | ||
| 10 | -import me.zhyd.oauth.config.AuthConfig; | ||
| 11 | -import me.zhyd.oauth.config.AuthSource; | ||
| 12 | -import me.zhyd.oauth.request.AuthRequest; | 7 | +import com.xingyuv.jushauth.cache.AuthStateCache; |
| 8 | +import com.xingyuv.jushauth.config.AuthConfig; | ||
| 9 | +import com.xingyuv.jushauth.config.AuthSource; | ||
| 10 | +import com.xingyuv.jushauth.request.AuthRequest; | ||
| 11 | +import com.xingyuv.justauth.AuthRequestFactory; | ||
| 12 | +import com.xingyuv.justauth.autoconfigure.JustAuthProperties; | ||
| 13 | 13 | ||
| 14 | import java.lang.reflect.Method; | 14 | import java.lang.reflect.Method; |
| 15 | 15 |
yudao-framework/yudao-spring-boot-starter-biz-social/src/main/java/cn/iocoder/yudao/framework/social/core/enums/AuthExtendSource.java
| 1 | package cn.iocoder.yudao.framework.social.core.enums; | 1 | package cn.iocoder.yudao.framework.social.core.enums; |
| 2 | 2 | ||
| 3 | -import me.zhyd.oauth.config.AuthSource; | 3 | +import com.xingyuv.jushauth.config.AuthSource; |
| 4 | +import com.xingyuv.jushauth.request.AuthDefaultRequest; | ||
| 4 | 5 | ||
| 5 | /** | 6 | /** |
| 6 | * 拓展 JustAuth 各 api 需要的 url, 用枚举类分平台类型管理 | 7 | * 拓展 JustAuth 各 api 需要的 url, 用枚举类分平台类型管理 |
| 7 | * | 8 | * |
| 8 | - * 默认配置 {@link me.zhyd.oauth.config.AuthDefaultSource} | 9 | + * 默认配置 {@link com.xingyuv.jushauth.config.AuthDefaultSource} |
| 9 | * | 10 | * |
| 10 | * @author timfruit | 11 | * @author timfruit |
| 11 | */ | 12 | */ |
| @@ -34,6 +35,11 @@ public enum AuthExtendSource implements AuthSource { | @@ -34,6 +35,11 @@ public enum AuthExtendSource implements AuthSource { | ||
| 34 | // 参见 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html 文档 | 35 | // 参见 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html 文档 |
| 35 | throw new UnsupportedOperationException("不支持获取用户信息 url,请使用小程序内置函数 wx.getUserProfile() 获取用户信息"); | 36 | throw new UnsupportedOperationException("不支持获取用户信息 url,请使用小程序内置函数 wx.getUserProfile() 获取用户信息"); |
| 36 | } | 37 | } |
| 38 | + | ||
| 39 | + @Override | ||
| 40 | + public Class<? extends AuthDefaultRequest> getTargetClass() { | ||
| 41 | + return null; | ||
| 42 | + } | ||
| 37 | } | 43 | } |
| 38 | 44 | ||
| 39 | } | 45 | } |
yudao-framework/yudao-spring-boot-starter-biz-social/src/main/java/cn/iocoder/yudao/framework/social/core/request/AuthWeChatMiniAppRequest.java
| @@ -3,16 +3,16 @@ package cn.iocoder.yudao.framework.social.core.request; | @@ -3,16 +3,16 @@ package cn.iocoder.yudao.framework.social.core.request; | ||
| 3 | import cn.iocoder.yudao.framework.common.util.json.JsonUtils; | 3 | import cn.iocoder.yudao.framework.common.util.json.JsonUtils; |
| 4 | import cn.iocoder.yudao.framework.social.core.enums.AuthExtendSource; | 4 | import cn.iocoder.yudao.framework.social.core.enums.AuthExtendSource; |
| 5 | import com.fasterxml.jackson.annotation.JsonProperty; | 5 | import com.fasterxml.jackson.annotation.JsonProperty; |
| 6 | +import com.xingyuv.jushauth.cache.AuthStateCache; | ||
| 7 | +import com.xingyuv.jushauth.config.AuthConfig; | ||
| 8 | +import com.xingyuv.jushauth.exception.AuthException; | ||
| 9 | +import com.xingyuv.jushauth.model.AuthCallback; | ||
| 10 | +import com.xingyuv.jushauth.model.AuthToken; | ||
| 11 | +import com.xingyuv.jushauth.model.AuthUser; | ||
| 12 | +import com.xingyuv.jushauth.request.AuthDefaultRequest; | ||
| 13 | +import com.xingyuv.jushauth.utils.HttpUtils; | ||
| 14 | +import com.xingyuv.jushauth.utils.UrlBuilder; | ||
| 6 | import lombok.Data; | 15 | import lombok.Data; |
| 7 | -import me.zhyd.oauth.cache.AuthStateCache; | ||
| 8 | -import me.zhyd.oauth.config.AuthConfig; | ||
| 9 | -import me.zhyd.oauth.exception.AuthException; | ||
| 10 | -import me.zhyd.oauth.model.AuthCallback; | ||
| 11 | -import me.zhyd.oauth.model.AuthToken; | ||
| 12 | -import me.zhyd.oauth.model.AuthUser; | ||
| 13 | -import me.zhyd.oauth.request.AuthDefaultRequest; | ||
| 14 | -import me.zhyd.oauth.utils.HttpUtils; | ||
| 15 | -import me.zhyd.oauth.utils.UrlBuilder; | ||
| 16 | 16 | ||
| 17 | /** | 17 | /** |
| 18 | * 微信小程序登陆 Request 请求 | 18 | * 微信小程序登陆 Request 请求 |
| @@ -32,7 +32,7 @@ public class AuthWeChatMiniAppRequest extends AuthDefaultRequest { | @@ -32,7 +32,7 @@ public class AuthWeChatMiniAppRequest extends AuthDefaultRequest { | ||
| 32 | protected AuthToken getAccessToken(AuthCallback authCallback) { | 32 | protected AuthToken getAccessToken(AuthCallback authCallback) { |
| 33 | // 参见 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html 文档 | 33 | // 参见 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html 文档 |
| 34 | // 使用 code 获取对应的 openId、unionId 等字段 | 34 | // 使用 code 获取对应的 openId、unionId 等字段 |
| 35 | - String response = new HttpUtils(config.getHttpConfig()).get(accessTokenUrl(authCallback.getCode())); | 35 | + String response = new HttpUtils(config.getHttpConfig()).get(accessTokenUrl(authCallback.getCode())).getBody(); |
| 36 | JSCode2SessionResponse accessTokenObject = JsonUtils.parseObject(response, JSCode2SessionResponse.class); | 36 | JSCode2SessionResponse accessTokenObject = JsonUtils.parseObject(response, JSCode2SessionResponse.class); |
| 37 | assert accessTokenObject != null; | 37 | assert accessTokenObject != null; |
| 38 | checkResponse(accessTokenObject); | 38 | checkResponse(accessTokenObject); |
| @@ -73,7 +73,7 @@ public class AuthWeChatMiniAppRequest extends AuthDefaultRequest { | @@ -73,7 +73,7 @@ public class AuthWeChatMiniAppRequest extends AuthDefaultRequest { | ||
| 73 | return UrlBuilder.fromBaseUrl(source.accessToken()) | 73 | return UrlBuilder.fromBaseUrl(source.accessToken()) |
| 74 | .queryParam("appid", config.getClientId()) | 74 | .queryParam("appid", config.getClientId()) |
| 75 | .queryParam("secret", config.getClientSecret()) | 75 | .queryParam("secret", config.getClientSecret()) |
| 76 | - .queryParam("js_code", code) // 和父类不同,所以需要重写该方法 | 76 | + .queryParam("js_code", code) |
| 77 | .queryParam("grant_type", "authorization_code") | 77 | .queryParam("grant_type", "authorization_code") |
| 78 | .build(); | 78 | .build(); |
| 79 | } | 79 | } |
yudao-framework/yudao-spring-boot-starter-biz-weixin/pom.xml
| @@ -36,12 +36,12 @@ | @@ -36,12 +36,12 @@ | ||
| 36 | <groupId>com.github.binarywang</groupId> | 36 | <groupId>com.github.binarywang</groupId> |
| 37 | <!-- <artifactId>weixin-java-mp</artifactId>--> | 37 | <!-- <artifactId>weixin-java-mp</artifactId>--> |
| 38 | <artifactId>wx-java-mp-spring-boot-starter</artifactId> | 38 | <artifactId>wx-java-mp-spring-boot-starter</artifactId> |
| 39 | - <version>4.4.0</version> | 39 | + <version>4.5.0</version> |
| 40 | </dependency> | 40 | </dependency> |
| 41 | <dependency> | 41 | <dependency> |
| 42 | <groupId>com.github.binarywang</groupId> | 42 | <groupId>com.github.binarywang</groupId> |
| 43 | <artifactId>wx-java-miniapp-spring-boot-starter</artifactId> | 43 | <artifactId>wx-java-miniapp-spring-boot-starter</artifactId> |
| 44 | - <version>4.4.0</version> | 44 | + <version>4.5.0</version> |
| 45 | </dependency> | 45 | </dependency> |
| 46 | <!-- TODO 芋艿:清理 --> | 46 | <!-- TODO 芋艿:清理 --> |
| 47 | </dependencies> | 47 | </dependencies> |
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthServiceImpl.java
| @@ -127,7 +127,7 @@ public class MemberAuthServiceImpl implements MemberAuthService { | @@ -127,7 +127,7 @@ public class MemberAuthServiceImpl implements MemberAuthService { | ||
| 127 | // 获得对应的手机号信息 | 127 | // 获得对应的手机号信息 |
| 128 | WxMaPhoneNumberInfo phoneNumberInfo; | 128 | WxMaPhoneNumberInfo phoneNumberInfo; |
| 129 | try { | 129 | try { |
| 130 | - phoneNumberInfo = wxMaService.getUserService().getNewPhoneNoInfo(reqVO.getPhoneCode()); | 130 | + phoneNumberInfo = wxMaService.getUserService().getPhoneNoInfo(reqVO.getPhoneCode()); |
| 131 | } catch (Exception exception) { | 131 | } catch (Exception exception) { |
| 132 | throw exception(AUTH_WEIXIN_MINI_APP_PHONE_CODE_ERROR); | 132 | throw exception(AUTH_WEIXIN_MINI_APP_PHONE_CODE_ERROR); |
| 133 | } | 133 | } |
yudao-module-system/yudao-module-system-biz/src/test/java/cn/iocoder/yudao/module/system/service/social/SocialUserServiceImplTest.java
| @@ -9,12 +9,12 @@ import cn.iocoder.yudao.module.system.dal.dataobject.social.SocialUserDO; | @@ -9,12 +9,12 @@ import cn.iocoder.yudao.module.system.dal.dataobject.social.SocialUserDO; | ||
| 9 | import cn.iocoder.yudao.module.system.dal.mysql.social.SocialUserBindMapper; | 9 | import cn.iocoder.yudao.module.system.dal.mysql.social.SocialUserBindMapper; |
| 10 | import cn.iocoder.yudao.module.system.dal.mysql.social.SocialUserMapper; | 10 | import cn.iocoder.yudao.module.system.dal.mysql.social.SocialUserMapper; |
| 11 | import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum; | 11 | import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum; |
| 12 | -import me.zhyd.oauth.enums.AuthResponseStatus; | ||
| 13 | -import me.zhyd.oauth.model.AuthCallback; | ||
| 14 | -import me.zhyd.oauth.model.AuthResponse; | ||
| 15 | -import me.zhyd.oauth.model.AuthUser; | ||
| 16 | -import me.zhyd.oauth.request.AuthRequest; | ||
| 17 | -import me.zhyd.oauth.utils.AuthStateUtils; | 12 | +import com.xingyuv.jushauth.enums.AuthResponseStatus; |
| 13 | +import com.xingyuv.jushauth.model.AuthCallback; | ||
| 14 | +import com.xingyuv.jushauth.model.AuthResponse; | ||
| 15 | +import com.xingyuv.jushauth.model.AuthUser; | ||
| 16 | +import com.xingyuv.jushauth.request.AuthRequest; | ||
| 17 | +import com.xingyuv.jushauth.utils.AuthStateUtils; | ||
| 18 | import org.junit.jupiter.api.Test; | 18 | import org.junit.jupiter.api.Test; |
| 19 | import org.mockito.MockedStatic; | 19 | import org.mockito.MockedStatic; |
| 20 | import org.springframework.boot.test.mock.mockito.MockBean; | 20 | import org.springframework.boot.test.mock.mockito.MockBean; |
yudao-server/pom.xml
| @@ -111,7 +111,7 @@ | @@ -111,7 +111,7 @@ | ||
| 111 | <plugin> | 111 | <plugin> |
| 112 | <groupId>org.springframework.boot</groupId> | 112 | <groupId>org.springframework.boot</groupId> |
| 113 | <artifactId>spring-boot-maven-plugin</artifactId> | 113 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 114 | - <version>2.7.12</version> <!-- 如果 spring.boot.version 版本修改,则这里也要跟着修改 --> | 114 | + <version>2.7.13</version> <!-- 如果 spring.boot.version 版本修改,则这里也要跟着修改 --> |
| 115 | <configuration> | 115 | <configuration> |
| 116 | <fork>true</fork> | 116 | <fork>true</fork> |
| 117 | </configuration> | 117 | </configuration> |