Plugin Directory

Changeset 3393324


Ignore:
Timestamp:
11/11/2025 02:32:59 AM (5 months ago)
Author:
infility
Message:

V2.14.25 (20251110) Ben: 抓取网页数据公共化

Location:
infility-global/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • infility-global/trunk/infility_global.php

    r3393312 r3393324  
    44Plugin URI: https://www.infility.cn/
    55Description: Infility公共插件
    6 Version: 2.14.24
     6Version: 2.14.25
    77Author: Infility
    88Author URI: https://www.infility.cn/
     
    135135    function __construct()
    136136    {
    137         define( 'INFILITY_GLOBAL_VERSION', '2.14.24' );
     137        define( 'INFILITY_GLOBAL_VERSION', '2.14.25' );
    138138        define( 'INFILITY_GLOBAL_PATH', plugin_dir_path( __FILE__ ) ); // fullpath/wp-content/plugins/infility-global/ // 有斜杠
    139139        define( 'INFILITY_GLOBAL_URL', plugins_url( '/', __FILE__ ) ); // https://the_domain/wp-content/plugins/infility-global/ // 斜杠是自己加的
  • infility-global/trunk/widgets/infility-import-data/include/infility-import-site.php

    r3393312 r3393324  
    705705            $progress = 100;
    706706        }else{
    707             $sql = "SELECT count(*) as count FROM $table WHERE list_id=$list_id";
     707            $sql = "SELECT count(*) as count FROM $table WHERE list_id=$list_id AND status IN (0,1)";
    708708            $total_num = $wpdb->get_var($sql);
    709709
     
    11721172
    11731173        $list = [];
     1174        $repeat_list = [];
    11741175        if(!empty($list_tag)){
    11751176            foreach($list_tag as $k=>$v){
    11761177                if(empty($v['link'])){continue;}
    1177                 if(in_array($v['link'],$check_repeat)){continue;}
    1178                 if(in_array($v['link'],$list)){continue;}
     1178                if(in_array($v['link'],$check_repeat)){
     1179                    $repeat_list[] = $v['link'];
     1180                    continue;
     1181                }
     1182                if(in_array($v['link'],$list)){
     1183                    $repeat_list[] = $v['link'];
     1184                    continue;
     1185                }
    11791186                $list[] = $v['link'];
    11801187            }
     
    11931200                $wpdb->insert($url_table,$insert);
    11941201            }
     1202
     1203            if(!empty($repeat_list)){
     1204                foreach($repeat_list as $k=>$v){
     1205                    $insert = [
     1206                        'list_id' => $list_id,
     1207                        'type' => 'post',
     1208                        'url' => $v,
     1209                        'status' => 2,
     1210                        'result' => 'url repeat',
     1211                        'page' => 0,
     1212                        'total_page'=> 0,
     1213                        'add_time' => time(),
     1214                    ];
     1215
     1216                    $wpdb->insert($url_table,$insert);
     1217                }
     1218            }
     1219
    11951220        }
    11961221
Note: See TracChangeset for help on using the changeset viewer.