Plugin Directory

Changeset 2238815


Ignore:
Timestamp:
02/05/2020 06:42:53 AM (6 years ago)
Author:
alwaysbee
Message:

version 6.3.1

Location:
beepress/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • beepress/trunk/beebox/includes/Endpoint/Crawler.php

    r2136253 r2238815  
    198198                    if ($targetRule) {
    199199                        $featureImgRule = $targetRule['target']['img'];
    200                         // $proxyLink = $featureImgRule['proxy_link'];
     200                        $proxyLink = $featureImgRule['proxy_link'];
    201201                    }
    202202
  • beepress/trunk/beebox/includes/Utils/CrawlerCore.php

    r2107156 r2238815  
    22namespace Bee\Beebox\Utils;
    33use \Curl\Curl;
     4
     5use function PHPSTORM_META\type;
    46
    57if(!class_exists('simple_html_dom_node')){
     
    178180                $contentArr = array();
    179181                foreach($contentMatches as $match) {
    180                     $contentArr[] = $match->outertext;
     182                    $contentArr[] = $match->innertext;
    181183                }
    182184                $content = implode('<br/>', $contentArr);
     
    263265            case 2:
    264266                $htmlDOM = str_get_html($content);
    265                 $matches = $htmlDOM->find($rule['rule']);
    266                 if (isset($rule['src'])) {
    267                     foreach($matches as $match) {
    268                         $src = $match->getAttribute($rule['src']);
    269                         if ($src) {
    270                             $match->setAttribute('src', $src);
    271                         }
    272                     }   
     267                if ($htmlDOM) {
     268                    $matches = $htmlDOM->find($rule['rule']);
     269                    if (isset($rule['src'])) {
     270                        foreach($matches as $match) {
     271                            $src = $match->getAttribute($rule['src']);
     272                            if ($src) {
     273                                $match->setAttribute('src', $src);
     274                            }
     275                        }   
     276                    }
     277                    $match = $matches;
     278                    $content = $htmlDOM->innertext;
     279                } else {
     280                    var_dump($content);
    273281                }
    274                 $match = $matches;
    275                 $content = $htmlDOM->outertext;
    276282                break;
    277283            default:   
  • beepress/trunk/beepress.php

    r2136253 r2238815  
    44Plugin URI: http://xingyue.artizen.me?source=wp
    55Description: 蜜蜂采集(BeePress) 是一款能够帮助你导入微信公众号文章、知乎专栏文章、简书文章、今日头条文章的插件(支持规则配置采集其他网站文章),可以实现单篇或者批量导入、自动同步文章、采集指定公众号所有历史文章,支持将图片资源保存到本地,同时集成了强大的内容推荐功能。
    6 Version: 6.3.0
     6Version: 6.3.1
    77Author: Bee
    88Author URI: http://xingyue.artizen.me?source=wp
     
    1313 * 初始化
    1414 */
    15 define('BEEPRESS_VERSION', '6.3.0');
     15define('BEEPRESS_VERSION', '6.3.1');
    1616if(!class_exists('simple_html_dom_node')){
    1717    require_once("simple_html_dom.php");
  • beepress/trunk/readme.txt

    r2136253 r2238815  
    44Author URI: http://xingyue.artizen.me?source=wp
    55Plugin URI: http://xingyue.artizen.me?source=wp
    6 Stable tag: 6.3.0
     6Stable tag: 6.3.1
    77Requires at least: 4.2
    88Requires PHP: 5.3.0
     
    5252None
    5353== Changelog ==
     54= 6.3.1 =
     55* 修复 7.0 测试版图片无法采集问题
    5456= 6.3.0 =
    5557* 修复 7.0 测试版头图无法采集的问题
Note: See TracChangeset for help on using the changeset viewer.