“mitao”
2026-02-02 c9e9737a7584ebf84e12ecc956a337c3f8f0d67b
ruoyi-system/src/main/java/com/ruoyi/system/utils/wx/WxQrCodeUtil.java
@@ -34,6 +34,9 @@
    @Autowired
    private RedisTemplate redisTemplate;
    @Value("${spring.profiles.active}")
    private String env;
    private String getAccessToken() {
        Object o = redisTemplate.opsForValue().get("accessToken");
        if (o != null) {
@@ -62,7 +65,7 @@
        param.put("page", "pages/home/home");
        param.put("width", 430); // 二维码尺寸
        param.put("scene", "code=" + code + "&type=" + type); // 二维码尺寸
        param.put("env_version", "trial"); // 二维码尺寸
        param.put("env_version", env.equals("prod") ? "release" : "trial"); // 二维码尺寸
        param.put("check_path", false); //二维码尺寸
        HttpRequest post = HttpUtil.createPost(url);
        post.body(JSON.toJSONString(param));