| | |
| | | import org.apache.shiro.mgt.DefaultSecurityManager; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | @Value("${debug_model}") |
| | | private Boolean timing; |
| | | // @ApiOperation("开启定时更新微信公众号accesstoken") |
| | | // @GetMapping("/updateWxAccessToken") |
| | | // @PostMapping("/updateWxAccessToken") |
| | | // public ApiResponse updateWxAccessToken() { |
| | | // DefaultSecurityManager securityManager = new DefaultSecurityManager(); |
| | | // SecurityUtils.setSecurityManager(securityManager); |
| | |
| | | // return ApiResponse.success("开启定时更新微信公众号accesstoken成功"); |
| | | // } |
| | | @ApiOperation("开启定时更新微信公众号accesstoken") |
| | | @GetMapping("/updateWxAccessTokenOrigin") |
| | | @PostMapping("/updateWxAccessTokenOrigin") |
| | | public ApiResponse updateWxAccessTokenOrigin() { |
| | | DefaultSecurityManager securityManager = new DefaultSecurityManager(); |
| | | SecurityUtils.setSecurityManager(securityManager); |