package com.yeshi.fanli.job;
|
|
import javax.annotation.Resource;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
import com.yeshi.fanli.service.inter.push.PushService;
|
import com.yeshi.fanli.util.Constant;
|
|
/**
|
* 金币任务
|
*
|
* @author Administrator
|
*
|
*/
|
@Component
|
public class IntegralTaskJob {
|
|
@Resource
|
private PushService pushService;
|
|
/**
|
* 推送签到提醒(每天15点半查询)
|
*/
|
@Scheduled(cron="0 30 15 * * ? ")
|
public void pushSignInNotify() {
|
if (!Constant.IS_TASK)
|
return;
|
// 获取昨天签到过的
|
|
// 查询今天是否已经签到
|
|
// 如果未签到,需要推送信息
|
// pushService.pushUserSignInNotification(uid, title, content, null,
|
// null);
|
}
|
|
}
|