| package com.doumee.timer; | 
|   | 
| import com.doumee.biz.system.SystemDictDataBiz; | 
| import com.doumee.biz.zbom.ZbomIAMService; | 
| import com.doumee.service.business.MemberService; | 
| import com.doumee.service.system.SystemDictService; | 
| import org.apache.commons.lang3.StringUtils; | 
| import org.slf4j.Logger; | 
| import org.slf4j.LoggerFactory; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Component; | 
|   | 
| import java.lang.reflect.Method; | 
|   | 
| /** | 
|  * @author 公众号:知了一笑 | 
|  * @since 2023-07-26 11:44 | 
|  */ | 
| @Component("weixinTokenJob") | 
| public class WeixinTokenJobBiz implements JobService { | 
|     private static final Logger log = LoggerFactory.getLogger(WeixinTokenJobBiz.class); | 
|   | 
|     @Autowired | 
|     SystemDictDataBiz systemDictService; | 
|     @Override | 
|     public void run(String params,String module) { | 
|         Method method = null; | 
|         try { | 
|             systemDictService.updWxMiniToken(); | 
|            log.info("\n ======== 定时任务已执行:weixinTokenJob.========"+module); | 
|         } catch (Exception e) { | 
|             log.error("\n ======== 定时任务已执行:weixinTokenJob.========发生异常:"+e.getMessage()); | 
|            e.printStackTrace(); | 
|         } | 
|     } | 
|   | 
| } |