| | |
| | | //前一天的數據 |
| | | Date ydate = DateUtil.addDaysToDate(new Date(), -1); |
| | | wxBillService.getWxBill(ydate); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 測試 |
| | | * @throws Exception |
| | |
| | | /** |
| | | * 更新微信 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)){ |
| | |
| | | } |
| | | |
| | | |
| | | @Scheduled(fixedDelay = 1000L * 60L ) |
| | | public void autCancelGoodsOrder(){ |
| | | log.info("=====================开始 自動取消未支付订单状态======================="); |
| | | goodsorderService.autoCancelRefunOrder();; |
| | | log.info("=====================结束 自動取消未支付订单状态======================="); |
| | | } |
| | | |
| | | |
| | | } |