feat():修复yml配置名称

dev.parse
ruyaxie 2024-10-10 10:29:42 +08:00
parent 08fc9623bc
commit 214962ff9a
10 changed files with 22 additions and 22 deletions

View File

@ -19,6 +19,6 @@ public class TokenConstants {
/**
*
*/
public final static String SECRET = "abcdefghijklmnsalieopadfaqawefwerstuvwxyz";
public final static String SECRET = "abcdefghijklmnsalieopadfaqawefwerstuvxyryz";
}

View File

@ -21,7 +21,7 @@ public class ServiceException extends RuntimeException {
/**
*
* <p>
* {@link CommonResult#getDetailMessage()}
* {@link #()}
*/
private String detailMessage;

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ const privateKey = 'MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYour
'7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKN\n' +
'PuH3owIDAQABAkAfoiLyL+Z4lf4Myxk6xUDgLaWGximj20CUf+5BKKnlrK+Ed8gA\n' +
'kM0HqoTt2UZwA5E2MzS4EI2gjfQhz5X28uqxAiEA3wNFxfrCZlSZHb0gn2zDpWow\n' +
'cSxQAgiCstxGUoOqlW8CIQDDOerGKH5OmCJ4Z21v+F25WaHYPxCFMvwxpcw99Ecv\n' +
'cSxQAgiCstxGUoOqlW8CIQDDOerGKH5OmCJ4Z21v+F25WaHYPxCFMvxyrpcw99Ecv\n' +
'DQIgIdhDTIqD2jfYjPTY8Jj3EDGPbH2HHuffvflECt3Ek60CIQCFRlCkHpi7hthh\n' +
'YhovyloRYsM+IS9h/0BzlEAuO0ktMQIgSPT3aFAgJYwKpqRYKlLDVcflZFCKY7u3\n' +
'UP8iWi1Qw0Y='

View File

@ -4,16 +4,16 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @className: WxApplication
* @className: xyrApplication
* @author: Yang 🦅
* @date: 2024/9/16 20:39
* @Version: 1.0
* @description:
*/
@SpringBootApplication
public class WxApplication {
public class xyrApplication {
public static void main(String[] args) {
System.out.println("微信服务启动成功");
SpringApplication.run(WxApplication.class);
SpringApplication.run(xyrApplication.class);
}
}

View File

@ -3,7 +3,7 @@ import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import com.muyu.service.WxService;
import com.muyu.service.xyrService;
import com.muyu.util.WechatUtil;
import io.micrometer.common.util.StringUtils;
import org.springframework.web.bind.annotation.*;
@ -13,7 +13,7 @@ import java.security.NoSuchAlgorithmException;
import java.util.*;
/**
* @className: GetWxController
* @className: GetxyrController
* @author: Yang 🦅
* @date: 2024/9/16 20:38
* @Version: 1.0
@ -21,13 +21,13 @@ import java.util.*;
*/
@Log4j2
@RestController
public class WxController {
public class xyrController {
// @Autowired
// private RedisService redisService;
@Autowired
private WxService wxService;
private xyrService xyrService;
@GetMapping("/")
public String check(@RequestParam("signature") String signature,@RequestParam("timestamp") String timestamp ,
@ -71,7 +71,7 @@ public class WxController {
public String receiveMessage(HttpServletRequest request){
String message = wxService.handleMessage(request);
String message = xyrService.handleMessage(request);
return message;
}
@ -82,17 +82,17 @@ public class WxController {
String code = request.getParameter("code");
return wxService.getSignUpUserInfo(code);
return xyrService.getSignUpUserInfo(code);
}
@GetMapping("/send")
public void sendWxMsg(@RequestParam("toUser") String toUser,@RequestParam("content") String content) {
public void sendxyrMsg(@RequestParam("toUser") String toUser,@RequestParam("content") String content) {
WechatUtil.send(toUser,content);
}
// @GetMapping("/getWxUserList")
// @GetMapping("/getxyrUserList")
// public List getUserList(){
// String accessToken = TokenUtil.getAccessToken();
// String url="https://api.weixin.qq.com/cgi-bin/user/get?access_token="+accessToken;

View File

@ -4,7 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
import com.muyu.domain.Message;
import com.muyu.domain.SubscribedUser;
import com.muyu.service.WxService;
import com.muyu.service.xyrService;
import com.muyu.util.OkHttpUtils;
import com.muyu.util.TokenUtil;
import com.muyu.util.WechatUtil;
@ -24,14 +24,14 @@ import java.util.HashMap;
import java.util.List;
/**
* @className: WxServiceImpl
* @className: xyrServiceImpl
* @author: Yang 🦅
* @date: 2024/9/18 12:05
* @Version: 1.0
* @description:
*/
@Service
public class WxServiceImpl implements WxService {
public class xyrServiceImpl implements xyrService {
/**

View File

@ -3,13 +3,13 @@ package com.muyu.service;
import jakarta.servlet.http.HttpServletRequest;
/**
* @className: WxService
* @className: xyrService
* @author: Yang 🦅
* @date: 2024/9/18 12:05
* @Version: 1.0
* @description:
*/
public interface WxService {
public interface xyrService {
String handleMessage(HttpServletRequest request);
String getSignUpUserInfo(String code);

View File

@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
*/
@Component
public class TokenUtil {
public final static String APP_ID = "wxa10c6f55da3c0553";
public final static String APP_ID = "xyra10c6f55da3c0553";
public final static String APP_SECRET ="72d285981f3f51274e79dcda5e498a81";

View File

@ -5,7 +5,7 @@ server:
#redirect:
# domain:123
##公众号appId和secret
#wx:
#xyr:
# appId:123
# secret:123