胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

教程7个月前发布 spoony
6 0 0

对象:胖鼠采集(Fat Rat Collect)v2.4.3

1、突破采集3页限制:

虽然可以突破3页的采集,但是延时的问题还是会存在采集不完全,需多次采集,或修改文件中的延时时间:60秒

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

 

位置:fat-rat-collect\includes\fatrat-validation.php

复制

    const FRC_HINT_F = '分页采集占用系统资源, 单次采集页数不可大于3页, 赞助鼠友可以无限制哦';

搜索FRC_HINT_F,在页面:

fat-rat-collect\includes\fatrat-spider.php

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

修改该处即可:

复制

            if (!get_option(FRC_Validation::FRC_VALIDATION_SPONSORSHIP) && count($page_count) > 3){
                return ['code' => FRC_ApiError::FAIL, 'msg' => FRC_Validation::FRC_HINT_F];
            }

 

2、采集后发布到指定目录:

修改前提示

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

位置:fat-rat-collect\includes\fatrat-validation.php

查找“FRC_HINT_L”,跟踪到fat-rat-collect\includes\fatrat-options.php

复制

        if (get_option(FRC_Validation::FRC_VALIDATION_RELEASE_CONTROL)){
            $params = [
                'category' => frc_sanitize_array('release_category', 'integer'),
                'user' => frc_sanitize_array('release_user', 'integer'),
                'status' => frc_sanitize_text('release_status', 'pending'),
                'type' => frc_sanitize_text('release_type', 'post'),
                'thumbnail' => frc_sanitize_text('release_thumbnail', 'thumbnail1'),
                'release_type' => frc_sanitize_text('release_type', 'WordPress'),
                'extension_field' => frc_sanitize_text('extension_field', 'post'),
            ];

            if (empty($params['category'])){
                $params['category'] = array(1);
            }

            if (empty($params['user'])){
                $params['user'] = [get_current_user_id()];
            }
        } else {
            $msg = FRC_Validation::FRC_HINT_L;
            $params = [
                'category' => array(1),
                'user' => [get_current_user_id()],
                'status' => frc_sanitize_text('release_status', 'pending'),
                'thumbnail' => 'thumbnail2',
                'release_type' => 'WordPress',
                'type' => 'post',
                'extension_field' => 'post',
            ];
        }

修改位置:

在数据库表wp_options中添加一项FRC_VALIDATION_RELEASE_CONTROL,值任意就好,我是写的1

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

wordpress主题开发函数2:添加选项add_option()与修改选项update_option()

 

 

修改后提示:

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解 胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

办法1:

SELECT wp_term_relationships.object_id FROM `wp_term_relationships` WHERE wp_term_relationships.object_id in (select wp_posts.ID from `wp_posts` where `wp_posts`.`ID`=wp_term_relationships.object_id )AND wp_term_relationships.term_taxonomy_id = 1

UPDATE `wp_term_relationships` SET wp_term_relationships.term_taxonomy_id =445 WHERE wp_term_relationships.object_id in (select wp_posts.ID from `wp_posts` where `wp_posts`.`ID`=wp_term_relationships.object_id )AND wp_term_relationships.term_taxonomy_id = 1

 

3、时间限制:

数据库中wp_options中的字段frc_report_permissions_time值,先修改了再说:

4、胖鼠工具箱-自动采集(自动发布)-时间频率突破:

未破解前,为灰色:

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

代码位置:\fat-rat-collect\includes\fatrat-kit.php,268行、293行

复制

                <h4>自动采集</h4>
                <ul>
                    <?php $cron_spider = get_option('frc_cron_spider'); ?>
                    <li><input type="radio" name="frc_cron_spider" value="" <?php echo empty($cron_spider) ? 'checked' : '' ?>> 关闭此功能</li>
                    <?php foreach ($frc_wp_schedules as $key => $info){
                        $disabled = '';
                        if (empty($frc_validation_sponsorship) && $info['interval']<43200){
                            $disabled = 'disabled';
                        }
                        echo (sprintf('<li><input type="radio" name="frc_cron_spider" value="%s" %s %s> %s(%s秒)</li>', $key, (!empty($cron_spider) && $cron_spider == $key ? esc_html('checked') : ''), $disabled, $info['display'], $info['interval']));
                    } ?>
                </ul>
胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

修改43200为0即可:

破解后:

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

 

5、自动标签功能

\fat-rat-collect\includes\fatrat-kit.php,303行

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

同文件,第138行:

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

需要zaiwp_options创建字段,且内容为json格式:

复制

{"switch":open,"created_at":"1617073742"}
胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解 胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

6、标签内链:

增加字段FRC_VALIDATION_INNER_CHAIN

复制

{"switch":open,"created_at":1617333683,"limit":1,"hide_empty":1,"created_at":1}
胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

 

 

7、其他都差不多胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

其他都OK了 但是关键词随机插入不行:

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

字段内容修改为:{“switch”:open,”created_at”:1617333683,”limit”:1,”hide_empty”:1,”created_at”:1}

8、最后可用模式数据库内容:

胖鼠采集(Fat Rat Collect)v2.4.3会员赞助功能破解

9、最后

作者还是很厚道的,小菜也过了一把瘾,红包赞助还是不能少的。

 

 

 

 

© 版权声明

相关文章

暂无评论

暂无评论...