Browse Source

wxcp配置

zyh
小久哥 3 years ago
parent
commit
04bed3ba3d
  1. 4
      yudao-framework/yudao-spring-boot-starter-biz-weixin/src/main/java/cn/iocoder/yudao/config/WxCpConfigure.java
  2. 2
      yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java
  3. 7
      yudao-server/src/main/resources/application.yaml

4
yudao-framework/yudao-spring-boot-starter-biz-weixin/src/main/java/cn/iocoder/yudao/config/WxCpConfigure.java

@ -13,9 +13,11 @@ import org.springframework.context.annotation.Scope;
@Slf4j
public class WxCpConfigure {
@Value("${corpId}")
@Value("${wxcp.corpId}")
private String corpId;
@Value("${wxcp.farmAppid}")
private String farmAppid;
@Value("${wxcp.farmSecret}")
private String farmSecret;
@Bean

2
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java

@ -67,7 +67,7 @@ public class AuthController {
private WxCpService wxCpService;
@Value("${farm_secret}")
@Value("${wxcp.farmSecret}")
private String farmSecret;
@PostMapping("/login")

7
yudao-server/src/main/resources/application.yaml

@ -144,4 +144,9 @@ bxg:
# sm.ms 图床的 token
smms:
token: 1oOP3ykFDI0K6ifmtvU7c8Y1eTWZSlyl
token: 1oOP3ykFDI0K6ifmtvU7c8Y1eTWZSlyl
wxcp:
corpId: wwb9f9734e8e124761
farmAppid: 1000033
farmSecret: UDSKsn0_LAPYqSwjH9E-AfY_X40lq0sormfe1yV_6Gc
Loading…
Cancel
Save