移除 weixin starter 组件,直接改成 wxjava starter
This commit is contained in:
parent
0df10bcb1e
commit
16c303bc28
@ -1,44 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<parent>
|
|
||||||
<groupId>cn.iocoder.cloud</groupId>
|
|
||||||
<artifactId>yudao-framework</artifactId>
|
|
||||||
<version>${revision}</version>
|
|
||||||
</parent>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<artifactId>yudao-spring-boot-starter-biz-weixin</artifactId>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
|
|
||||||
<name>${project.artifactId}</name>
|
|
||||||
<description>微信拓展
|
|
||||||
1. 基于 weixin-java-mp 库,对接微信公众号平台。目前主要解决微信公众号的支付场景。
|
|
||||||
</description>
|
|
||||||
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.cloud</groupId>
|
|
||||||
<artifactId>yudao-common</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Test 测试相关 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.iocoder.cloud</groupId>
|
|
||||||
<artifactId>yudao-spring-boot-starter-test</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- 三方云服务相关 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.github.binarywang</groupId>
|
|
||||||
<artifactId>wx-java-mp-spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.github.binarywang</groupId>
|
|
||||||
<artifactId>wx-java-miniapp-spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||||||
/**
|
|
||||||
* 微信拓展
|
|
||||||
* 1. 基于 weixin-java-mp 库,对接微信公众号平台。目前主要解决微信公众号的支付场景。
|
|
||||||
* 2. 基于 weixin-java-miniapp 库,对接微信小程序。目前主要解决微信小程序的一键登录场景。
|
|
||||||
*/
|
|
||||||
package cn.iocoder.yudao.framework.weixin;
|
|
@ -1,34 +0,0 @@
|
|||||||
package cn.iocoder.yudao.framework.weixin;
|
|
||||||
|
|
||||||
import me.chanjar.weixin.common.error.WxErrorException;
|
|
||||||
import me.chanjar.weixin.mp.api.WxMpService;
|
|
||||||
import org.junit.jupiter.api.Test;
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
@SpringBootTest(classes = WxMpServiceTest.Application.class)
|
|
||||||
public class WxMpServiceTest {
|
|
||||||
|
|
||||||
@Resource
|
|
||||||
private WxMpService wxMpService;
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testGetAccessToken() throws WxErrorException {
|
|
||||||
String accessToken = wxMpService.getAccessToken();
|
|
||||||
System.out.println(accessToken);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testGet() throws WxErrorException {
|
|
||||||
String jsapiTicket = wxMpService.getJsapiTicket();
|
|
||||||
System.out.println(jsapiTicket);
|
|
||||||
}
|
|
||||||
|
|
||||||
@SpringBootApplication
|
|
||||||
public static class Application {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
--- #################### 微信公众号相关配置 ####################
|
|
||||||
wx: # 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档
|
|
||||||
mp:
|
|
||||||
# 公众号配置(必填)
|
|
||||||
app-id: wx041349c6f39b268b
|
|
||||||
secret: 5abee519483bc9f8cb37ce280e814bd0
|
|
||||||
# 存储配置,解决 AccessToken 的跨节点的共享
|
|
||||||
# config-storage:
|
|
||||||
# type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取
|
|
||||||
# key-prefix: wx # Redis Key 的前缀 TODO 芋艿:解决下 Redis key 管理的配置
|
|
||||||
# http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
|
|
Loading…
Reference in New Issue
Block a user