package cn.com.ctop.job.bytedance.handler;

import cn.com.ctop.common.module.utils.HttpUtils;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.jeecg.common.util.DateUtils;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class BytedanceRejectReasonJob {
    private static final String URLPREFIX = "http://118.24.244.213:8808/bytedance-api/ctop/bytedanceRejectReason/getReasonInRecentHours?hour=";

    /**
     * 头条优化审核建议
     * @throws Exception
     */
    @XxlJob("bytedanceRejectReasonJob")
    public void execute() throws Exception {

        //定时任务设置每2个小时执行一次，就传入参数hour是2.每次运行获取2个小时内的计划，拉取审核建议
        HttpUtils.httpGet(URLPREFIX + 24, null, null);
    }
}
