1、突破采集3页限制:
虽然可以突破3页的采集,但是延时的问题还是会存在采集不完全,需多次采集,或修改文件中的延时时间:60秒
位置:fat-rat-collect\includes\fatrat-validation.php
const FRC_HINT_F = '分页采集占用系统资源, 单次采集页数不可大于3页, 赞助鼠友可以无限制哦';
搜索FRC_HINT_F,在页面:
fat-rat-collect\includes\fatrat-spider.php
修改该处即可:
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\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
修改后提示:
办法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\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>
修改43200
为0即可:
破解后:
5、自动标签功能
\fat-rat-collect\includes\fatrat-kit.php,303行
同文件,第138行:
需要zaiwp_options创建字段,且内容为json格式:
{"switch":open,"created_at":"1617073742"}
6、标签内链:
增加字段FRC_VALIDATION_INNER_CHAIN
{"switch":open,"created_at":1617333683,"limit":1,"hide_empty":1,"created_at":1}
7、其他都差不多
其他都OK了 但是关键词随机插入不行:
字段内容修改为:{“switch”:open,”created_at”:1617333683,”limit”:1,”hide_empty”:1,”created_at”:1}
8、最后可用模式数据库内容:
9、最后
作者还是很厚道的,小菜也过了一把瘾,红包赞助还是不能少的。