公众号订阅 用户

This commit is contained in:
2025-10-20 14:55:06 +08:00
parent 2b286e6a07
commit e0fc346f26
7 changed files with 233 additions and 5 deletions

View File

@@ -0,0 +1,30 @@
package com.czg.controller;
import com.czg.account.service.UserInfoService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 公众号 通知
* @author ww
* @description
*/
@Slf4j
@RestController
@RequestMapping("/notify")
public class NotifyController {
private static final String SUCCESS = "SUCCESS";
@Resource
private UserInfoService userInfoService;
@RequestMapping
public String notify(@RequestBody String str) {
log.info("公众号 通知:{}", str);
return SUCCESS;
}
}

View File

@@ -13,7 +13,10 @@ wx:
secrete: 8492a7e8d55bbb1b57f5c8276ea1add0
operationMsgTmpId: wFdoUG-dUT7bDRHq8bMJD9CF5TjyH9x_uJQgQByZqHg
warnMsgTmpId: C08OUr80x6wGmUN1zpFhSQ3Sv7VF5vksdZigiEx2pD0
# 公众号
ac:
appId: wx1fb600d0f5ea6279
secrete: b4c0534c9b5e6c84a7fe5c2078dff876
logging:
config: classpath:logback.xml