| | |
| | | @Autowired |
| | | private RedisTemplate redisTemplate; |
| | | |
| | | @Value("${spring.profiles.active}") |
| | | private String env; |
| | | |
| | | private String getAccessToken() { |
| | | Object o = redisTemplate.opsForValue().get("accessToken"); |
| | | if (o != null) { |
| | |
| | | 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)); |