|  |  |  | 
|---|
|  |  |  | * @date 2021-10-10 14:40:35 | 
|---|
|  |  |  | * https://www.bejson.com/othertools/cron/  cron 表达式生成地址 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Component | 
|---|
|  |  |  | @EnableScheduling | 
|---|
|  |  |  | //@Component | 
|---|
|  |  |  | //@EnableScheduling | 
|---|
|  |  |  | @Slf4j | 
|---|
|  |  |  | public class ScheduleTool { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 是否开发者 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Value("${timing}") | 
|---|
|  |  |  | @Value("${debug_model}") | 
|---|
|  |  |  | private Boolean timing; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | String url = WXConstant.GET_ACCESS_TOKEN_URL.replace("APPID",appId).replace("APPSECRET",appSecret); | 
|---|
|  |  |  | String response = HttpsUtil.get(url,false); | 
|---|
|  |  |  | JSONObject json = JSONObject.parseObject(response); | 
|---|
|  |  |  | System.out.println(json); | 
|---|
|  |  |  | SystemDictData systemDictData =  systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_ACCESS_TOKEN); | 
|---|
|  |  |  | if(!Objects.isNull(systemDictData)){ | 
|---|
|  |  |  | systemDictData.setCode(json.getString("access_token")); | 
|---|