yujian
2019-08-26 b2e7e9ed88acb0e0ea50571ae028199926b7d262
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);
    }
 
}