xiaoyong931011
2023-07-14 3184496c2b534e8b7e7142ed8419aaef16de0404
服务号初始化
3 files modified
17 ■■■■ changed files
src/main/java/cc/mrbird/febs/common/properties/XcxProperties.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/pay/controller/AutoReplyController.java 14 ●●●● patch | view | raw | blame | history
src/main/resources/application-dev.yml 1 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/common/properties/XcxProperties.java
@@ -14,8 +14,6 @@
    private String xcxAppid;
    private String xcxSecret;
    //微信
    private String wechatToken;
    private String wecharPaynotifyUrl;
src/main/java/cc/mrbird/febs/pay/controller/AutoReplyController.java
@@ -22,17 +22,7 @@
@RequestMapping(value = "/api/wechat/reply")
public class AutoReplyController {
    private final XcxProperties xcxProperties = SpringContextHolder.getBean(XcxProperties.class);
//    @Value("${wechat.appId}")
//    private String wechatAppId;
//
//    @Value("${wechat.appSecret}")
//    private String wechatAppSecret;
//
//    // 这个Token就是微信后台 服务器配置 中的Token
//    @Value("${wechat.token}")
//    private String wechatToken;
    private final String wechatToken = "ywgpzfwh";
    /**
     * 服务器校验
@@ -41,7 +31,7 @@
     */
    @GetMapping("/event")
    public String verification(HttpServletRequest req) {
        return WechatEventUtil.verification(req, xcxProperties.getWechatToken());
        return WechatEventUtil.verification(req, wechatToken);
    }
    /**
src/main/resources/application-dev.yml
@@ -79,7 +79,6 @@
  wecharpaySecret: QIANAYIZONGZI1234567899876543212
  gaodeKey: 95ede7157929f5f6b6c758971be924b1
  serviceName: yiyuanshucai
  wechatToken:ywgpzfwh
system:
  job: true