Commit 0fe2525c9dfd3e4b2f56788890c6fe28a9a8a159
1 parent
f0df92ff3f
Exists in
master
and in
1 other branch
access_token-获取时间差BUG
Showing 1 changed file with 1 additions and 2 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/task/PushArticleTask.java
View file @
0fe2525
... | ... | @@ -45,7 +45,6 @@ |
45 | 45 | */ |
46 | 46 | @Scheduled(cron = "0 0 18 * * ?") |
47 | 47 | public void pushArtcle(){ |
48 | - String token= AccessTokenServlet.accessToken; | |
49 | 48 | Map<String,Object> param=new HashMap<>(); |
50 | 49 | param.put("vtype",999); |
51 | 50 | List<LymsDict> dcLst=lymsDictService.listByMap(param); |
... | ... | @@ -64,7 +63,7 @@ |
64 | 63 | pushedart.setCreatedtime(new Date()); |
65 | 64 | pushedart.setIsread((byte) 0); |
66 | 65 | //获取token失败 |
67 | - if(StringUtil.isEmpty(token)){ | |
66 | + if(StringUtil.isEmpty(AccessTokenServlet.accessToken)){ | |
68 | 67 | //更新到LymsPushMessages记录 |
69 | 68 | lymsPushMessage.setState(2);//推送状态:0待推送 1成功 2失败。(在备注写失败原因) |
70 | 69 | lymsPushMessage.setRemark("推送短消息"+(lymsPushMessage.getIsweixinOne()==1?"1":"2")+",获取token失败!"); |