|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 更新微信 ACCESS_TOKEN | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Scheduled(fixedDelay = 1000L * 60L * 90L) | 
|---|
|  |  |  | //    @Scheduled(fixedDelay = 1000L * 60L * 90L) | 
|---|
|  |  |  | public void updAccessToken(){ | 
|---|
|  |  |  | DefaultWebSecurityManager manager = new DefaultWebSecurityManager(); | 
|---|
|  |  |  | ThreadContext.bind(manager); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //生成微信token | 
|---|
|  |  |  | String url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid="+appId+"&secret="+appSecret; | 
|---|
|  |  |  | String response = HttpsUtil.doGet(url,null); | 
|---|
|  |  |  | String response = HttpsUtil.get(url,false); | 
|---|
|  |  |  | JSONObject json = JSONObject.parseObject(response); | 
|---|
|  |  |  | SystemDictData systemDictData = systemDictDataBiz.queryByCode(Constants.MINI_PROGRAMME,Constants.ACCESS_TOKEN); | 
|---|
|  |  |  | if(!Objects.isNull(systemDictData)){ | 
|---|