feat: 增加定时刷新短信cookie不过期
parent
3bbfa93e13
commit
8f4ce5e209
@ -0,0 +1,28 @@
|
||||
package com.shxy.xymanager_framework.timeTask;
|
||||
|
||||
import com.shxy.xymanager_common.sms.dahan.DahanWeb;
|
||||
import com.shxy.xymanager_common.sms.lwwlkj.LwwlkjWeb;
|
||||
import com.shxy.xymanager_common.sms.m2m.M2m10086Web;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class RefreshSmsCookieTask {
|
||||
|
||||
@Resource
|
||||
DahanWeb dahanWeb;
|
||||
@Resource
|
||||
M2m10086Web m2m10086Web;
|
||||
@Resource
|
||||
LwwlkjWeb lwwlkjWeb;
|
||||
|
||||
|
||||
@Scheduled(initialDelay = 60000, fixedDelay = 60000)
|
||||
private void test() {
|
||||
dahanWeb.test();
|
||||
m2m10086Web.test();
|
||||
lwwlkjWeb.test();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue