Changeset 3393324
- Timestamp:
- 11/11/2025 02:32:59 AM (5 months ago)
- Location:
- infility-global/trunk
- Files:
-
- 2 edited
-
infility_global.php (modified) (2 diffs)
-
widgets/infility-import-data/include/infility-import-site.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
infility-global/trunk/infility_global.php
r3393312 r3393324 4 4 Plugin URI: https://www.infility.cn/ 5 5 Description: Infility公共插件 6 Version: 2.14.2 46 Version: 2.14.25 7 7 Author: Infility 8 8 Author URI: https://www.infility.cn/ … … 135 135 function __construct() 136 136 { 137 define( 'INFILITY_GLOBAL_VERSION', '2.14.2 4' );137 define( 'INFILITY_GLOBAL_VERSION', '2.14.25' ); 138 138 define( 'INFILITY_GLOBAL_PATH', plugin_dir_path( __FILE__ ) ); // fullpath/wp-content/plugins/infility-global/ // 有斜杠 139 139 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 705 705 $progress = 100; 706 706 }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)"; 708 708 $total_num = $wpdb->get_var($sql); 709 709 … … 1172 1172 1173 1173 $list = []; 1174 $repeat_list = []; 1174 1175 if(!empty($list_tag)){ 1175 1176 foreach($list_tag as $k=>$v){ 1176 1177 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 } 1179 1186 $list[] = $v['link']; 1180 1187 } … … 1193 1200 $wpdb->insert($url_table,$insert); 1194 1201 } 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 1195 1220 } 1196 1221
Note: See TracChangeset
for help on using the changeset viewer.