标签 调整 下的文章

MacCMS后台资源库采集时间调整

默认采集当天是采集过去24小时内的内容,由于每次采集时间不统一,会出现漏采的情况,我们把这个时间调整为过去48小时内。
编辑/application/admin/view/collect/index.html文件第54行,找到

<a class="layui-badge-rim" href="{:url('api')}?{:http_build_query(['ac'=>'cj','cjflag'=>md5($vo.collect_url),'cjurl'=>$vo.collect_url,'h'=>'24','t'=>'','ids'=>'','wd'=>'','type'=>$vo.collect_type,'mid'=>$vo.collect_mid,'opt'=>$vo.collect_opt,'sync_pic_opt'=>$vo.collect_sync_pic_opt,'filter'=>$vo.collect_filter,'filter_from'=>$vo.collect_filter_from,'filter_year'=>$vo.collect_filter_year,'param'=>base64_encode($vo.collect_param)])}" title="采集当天">采集当天</a>

修改为

<a class="layui-badge-rim" href="{:url('api')}?{:http_build_query(['ac'=>'cj','cjflag'=>md5($vo.collect_url),'cjurl'=>$vo.collect_url,'h'=>'48','t'=>'','ids'=>'','wd'=>'','type'=>$vo.collect_type,'mid'=>$vo.collect_mid,'opt'=>$vo.collect_opt,'sync_pic_opt'=>$vo.collect_sync_pic_opt,'filter'=>$vo.collect_filter,'filter_from'=>$vo.collect_filter_from,'filter_year'=>$vo.collect_filter_year,'param'=>base64_encode($vo.collect_param)])}" title="采集当天">采集当天</a>

- 阅读剩余部分 -

SeaCMS后台资源库采集时间调整

默认采集当天是采集过去24小时内的内容,由于每次采集时间不统一,会出现漏采的情况,我们把这个时间调整为过去48小时内。
编辑/admin/admin_reslib.php文件第320行,找到

elseif($action=="day")
{
    $page = $pg;
    if($rid=='seazmt3zz2cmszmt')
    {
        $weburl=$var_url."?s=plus-api-xml-cms-max-cid--h-24-p-{$page}";
    }
    else
    {
        $weburl=$var_url.(strpos($var_url,'?')!==false?"&":"?")."ac=videolist&rid=".$ressite."&t=0&h=24&pg=".$page;
    }
    
    intoDatabase($weburl,"day");
}

修改为

elseif($action=="day")
{
    $page = $pg;
    if($rid=='seazmt3zz2cmszmt')
    {
        $weburl=$var_url."?s=plus-api-xml-cms-max-cid--h-48-p-{$page}";
    }
    else
    {
        $weburl=$var_url.(strpos($var_url,'?')!==false?"&":"?")."ac=videolist&rid=".$ressite."&t=0&h=48&pg=".$page;
    }
    
    intoDatabase($weburl,"day");
}elseif($action=="week")

- 阅读剩余部分 -