正在显示
1 个修改的文件
包含
96 行增加
和
70 行删除
| @@ -41,28 +41,60 @@ class HtmlCustomCollect extends Command | @@ -41,28 +41,60 @@ class HtmlCustomCollect extends Command | ||
| 41 | { | 41 | { |
| 42 | ini_set('memory_limit', '512M'); | 42 | ini_set('memory_limit', '512M'); |
| 43 | 43 | ||
| 44 | - $project_id = 517; | ||
| 45 | - $project_site = 'v6-1gee9.globalso.site'; | 44 | +// $project_id = 437; |
| 45 | +// $project_site = 'v6-1500k.globalso.site'; | ||
| 46 | +// $pages = [ | ||
| 47 | +// 'https://www.tourletent.com/project/b300-glamping-tent-in-china/', | ||
| 48 | +// 'https://www.tourletent.com/project/lotus-bell-tent-in-australia/', | ||
| 49 | +// 'https://www.tourletent.com/project/luxury-resort-in-china/', | ||
| 50 | +// 'https://www.tourletent.com/project/canvas-safari-tent-inthailand/', | ||
| 51 | +// 'https://www.tourletent.com/project/safari-tent-for-m8-in-mexcio/', | ||
| 52 | +// 'https://www.tourletent.com/project/9m-pvc-dome-tent-in-canada/', | ||
| 53 | +// 'https://www.tourletent.com/project/c900-hotel-tent-in-korea/', | ||
| 54 | +// 'https://www.tourletent.com/project/safari-tent-in-guizhou/', | ||
| 55 | +// 'https://www.tourletent.com/project/dome-tent-in-austin/', | ||
| 56 | +// 'https://www.tourletent.com/project/safari-tent-in-italy/', | ||
| 57 | +// 'https://www.tourletent.com/project/glass-igloo-in-china/', | ||
| 58 | +// 'https://www.tourletent.com/project/tree-house-in-sichuan/' | ||
| 59 | +// ]; | ||
| 60 | + | ||
| 61 | +// $project_id = 517; | ||
| 62 | +// $project_site = 'v6-1gee9.globalso.site'; | ||
| 63 | +// $pages = [ | ||
| 64 | +// 'https://www.beifa.group/help/send-results/', | ||
| 65 | +// 'https://www.beifa.group/help/terms-of-use/', | ||
| 66 | +// 'https://www.beifa.group/help/position-3/', | ||
| 67 | +// 'https://www.beifa.group/help/position-2/', | ||
| 68 | +// 'https://www.beifa.group/help/position-1/', | ||
| 69 | +// 'https://www.beifa.group/help/social-media/', | ||
| 70 | +// 'https://www.beifa.group/help/globle-exibition-2/', | ||
| 71 | +// 'https://www.beifa.group/help/job/', | ||
| 72 | +// 'https://www.beifa.group/help/vr/', | ||
| 73 | +// 'https://www.beifa.group/help/on-live-video/', | ||
| 74 | +// 'https://www.beifa.group/help/honor/', | ||
| 75 | +// 'https://www.beifa.group/help/certification/', | ||
| 76 | +// 'https://www.beifa.group/help/quanity-control/', | ||
| 77 | +// 'https://www.beifa.group/help/testing-center/', | ||
| 78 | +// 'https://www.beifa.group/help/rd/', | ||
| 79 | +// 'https://www.beifa.group/help/design-trend/', | ||
| 80 | +// 'https://www.beifa.group/help/partner/', | ||
| 81 | +// 'https://www.beifa.group/help/social-responsibility/', | ||
| 82 | +// 'https://www.beifa.group/help/contact/', | ||
| 83 | +// ]; | ||
| 84 | + | ||
| 85 | + $project_id = 546; | ||
| 86 | + $project_site = 'v6-kx260.globalso.site'; | ||
| 46 | $pages = [ | 87 | $pages = [ |
| 47 | - 'https://www.beifa.group/help/send-results/', | ||
| 48 | - 'https://www.beifa.group/help/terms-of-use/', | ||
| 49 | - 'https://www.beifa.group/help/position-3/', | ||
| 50 | - 'https://www.beifa.group/help/position-2/', | ||
| 51 | - 'https://www.beifa.group/help/position-1/', | ||
| 52 | - 'https://www.beifa.group/help/social-media/', | ||
| 53 | - 'https://www.beifa.group/help/globle-exibition-2/', | ||
| 54 | - 'https://www.beifa.group/help/job/', | ||
| 55 | - 'https://www.beifa.group/help/vr/', | ||
| 56 | - 'https://www.beifa.group/help/on-live-video/', | ||
| 57 | - 'https://www.beifa.group/help/honor/', | ||
| 58 | - 'https://www.beifa.group/help/certification/', | ||
| 59 | - 'https://www.beifa.group/help/quanity-control/', | ||
| 60 | - 'https://www.beifa.group/help/testing-center/', | ||
| 61 | - 'https://www.beifa.group/help/rd/', | ||
| 62 | - 'https://www.beifa.group/help/design-trend/', | ||
| 63 | - 'https://www.beifa.group/help/partner/', | ||
| 64 | - 'https://www.beifa.group/help/social-responsibility/', | ||
| 65 | - 'https://www.beifa.group/help/contact/', | 88 | + 'https://www.grechofiberglass.com/success_stories/', |
| 89 | + 'https://www.grechofiberglass.com/success_stories/achieving-transformative-improvements-for-polyurethane-exterior-insulation-panels-in-france/', | ||
| 90 | + 'https://www.grechofiberglass.com/success_stories/grechos-fiberglass-rebar-revolutionizing-canadian-construction-projects-with-unparalleled-quality/', | ||
| 91 | + 'https://www.grechofiberglass.com/success_stories/customer-from-the-uk-purchases-fiberglass-coated-mats-for-plasterboards-from-grecho/', | ||
| 92 | + 'https://www.grechofiberglass.com/success_stories/supplying-carbon-fiber-to-australian-surfboard-manufacturer/', | ||
| 93 | + 'https://www.grechofiberglass.com/success_stories/300g-chopped-strand-mat-for-composite-slates-shipped-to-malaysia/', | ||
| 94 | + 'https://www.grechofiberglass.com/success_stories/fiberglass-roving-for-pipewater-tank-shipped-to-russia/', | ||
| 95 | + 'https://www.grechofiberglass.com/success_stories/fiberglass-fleece-for-acoustic-ceiling-shipped-to-russia/', | ||
| 96 | + 'https://www.grechofiberglass.com/success_stories/600g-fiberglass-aluminum-foil-cloth-shipped-to-australia-for-pipe-heat-shielding/', | ||
| 97 | + 'https://www.grechofiberglass.com/success_stories/shipping-our-first-truck-of-fiberglass-tissue-in-2022/', | ||
| 66 | ]; | 98 | ]; |
| 67 | 99 | ||
| 68 | // $project_id = 586; | 100 | // $project_id = 586; |
| @@ -78,6 +110,36 @@ class HtmlCustomCollect extends Command | @@ -78,6 +110,36 @@ class HtmlCustomCollect extends Command | ||
| 78 | // 'https://www.citymax-group.com/case/field-experiment-crop-lettuce/', | 110 | // 'https://www.citymax-group.com/case/field-experiment-crop-lettuce/', |
| 79 | // ]; | 111 | // ]; |
| 80 | 112 | ||
| 113 | +// $project_id = 626; | ||
| 114 | +// $project_site = 'v6-m342g.globalso.site'; | ||
| 115 | +// $pages = [ | ||
| 116 | +// 'https://www.lecusostreetlight.com/project_catalog/project/', | ||
| 117 | +// 'https://www.lecusostreetlight.com/project_catalog/project/page/2/', | ||
| 118 | +// 'https://www.lecusostreetlight.com/project/560pcs-250w-smart-led-street-light-in-manila-city-philippines/', | ||
| 119 | +// 'https://www.lecusostreetlight.com/project/3200pcs-8m-150w-solar-street-light-in-cebu-philippines/', | ||
| 120 | +// 'https://lecusostreetlight.com/project/170pcs-100w-split-lithium-battery-solar-street-light-in-tanzania/', | ||
| 121 | +// 'https://www.lecusostreetlight.com/project/250pcs-40w-sl-series-solar-street-light-in-kuwait/', | ||
| 122 | +// 'https://www.lecusostreetlight.com/project/272pcs-8m-80w-solar-street-light-in-tanzania/', | ||
| 123 | +// 'https://www.lecusostreetlight.com/project/185pcs-10m-120w-highway-solar-street-light-in-jordan/', | ||
| 124 | +// 'https://www.lecusostreetlight.com/project/270pcs-9m-patterned-decorative-light-pole-with-150w-led-cobra-light-in-cambodia/', | ||
| 125 | +// 'https://www.lecusostreetlight.com/project/48pcs-5m-24w-decorative-aluminium-pole-in-dubai-uae/', | ||
| 126 | +// 'https://www.lecusostreetlight.com/project/105pcs-9m-100w-led-street-light-in-sri-lanka/', | ||
| 127 | +// 'https://www.lecusostreetlight.com/project/45pcs-6m-hot-dip-galvanized-double-arm-street-light-pole-in-dubai-uae/', | ||
| 128 | +// 'https://www.lecusostreetlight.com/project/356pcs-8m-100w-solar-street-light-in-ethiopia/', | ||
| 129 | +// 'https://www.lecusostreetlight.com/project/52pcs-6m-30w-solar-led-street-light-with-gel-battery-in-poland/', | ||
| 130 | +// 'https://www.lecusostreetlight.com/project/225pcs-6m-80w-solar-street-light-in-vietnam/', | ||
| 131 | +// 'https://www.lecusostreetlight.com/project/450pcs-7m-60w-double-arm-solar-light-in-nigeria/', | ||
| 132 | +// 'https://www.lecusostreetlight.com/project/100pcs-6m-50w-led-street-light-in-maldives/', | ||
| 133 | +// 'https://www.lecusostreetlight.com/project/202pcs-6m-40w-3000k-solar-street-light-in-manila-philippines/', | ||
| 134 | +// 'https://www.lecusostreetlight.com/project/245pcs-120w-smart-led-street-light-in-bangkok-thailand/', | ||
| 135 | +// 'https://www.lecusostreetlight.com/project/170pcs-7m-50w-all-in-one-solar-light-in-davao-philippines/', | ||
| 136 | +// 'https://www.lecusostreetlight.com/project/80pcs-9m-150w-led-street-light-in-iraq/', | ||
| 137 | +// 'https://www.lecusostreetlight.com/project/252pcs-6m-40w-separate-solar-street-light-with-lithium-battery-in-thailand/', | ||
| 138 | +// 'https://www.lecusostreetlight.com/project/198pcs-8m-80w-zc-series-all-in-two-solar-light-in-philippines/', | ||
| 139 | +// 'https://www.lecusostreetlight.com/project/5m-30w-morden-led-garden-light-in-russian/', | ||
| 140 | +// 'https://www.lecusostreetlight.com/project/135pcs-all-in-one-solar-street-light-in-uae-dubai-park/' | ||
| 141 | +// ]; | ||
| 142 | + | ||
| 81 | // $project_id = 633; | 143 | // $project_id = 633; |
| 82 | // $project_site = 'v6-ke5nz.globalso.site'; | 144 | // $project_site = 'v6-ke5nz.globalso.site'; |
| 83 | // $pages = [ | 145 | // $pages = [ |
| @@ -117,53 +179,6 @@ class HtmlCustomCollect extends Command | @@ -117,53 +179,6 @@ class HtmlCustomCollect extends Command | ||
| 117 | // 'https://www.mach-sales.com/case/cooperation-win-win-and-starting-anew-sumec-creates-a-new-sample-of-strong-enterprise-cooperation/' | 179 | // 'https://www.mach-sales.com/case/cooperation-win-win-and-starting-anew-sumec-creates-a-new-sample-of-strong-enterprise-cooperation/' |
| 118 | // ]; | 180 | // ]; |
| 119 | 181 | ||
| 120 | -// $project_id = 437; | ||
| 121 | -// $project_site = 'v6-1500k.globalso.site'; | ||
| 122 | -// $pages = [ | ||
| 123 | -// 'https://www.tourletent.com/project/b300-glamping-tent-in-china/', | ||
| 124 | -// 'https://www.tourletent.com/project/lotus-bell-tent-in-australia/', | ||
| 125 | -// 'https://www.tourletent.com/project/luxury-resort-in-china/', | ||
| 126 | -// 'https://www.tourletent.com/project/canvas-safari-tent-inthailand/', | ||
| 127 | -// 'https://www.tourletent.com/project/safari-tent-for-m8-in-mexcio/', | ||
| 128 | -// 'https://www.tourletent.com/project/9m-pvc-dome-tent-in-canada/', | ||
| 129 | -// 'https://www.tourletent.com/project/c900-hotel-tent-in-korea/', | ||
| 130 | -// 'https://www.tourletent.com/project/safari-tent-in-guizhou/', | ||
| 131 | -// 'https://www.tourletent.com/project/dome-tent-in-austin/', | ||
| 132 | -// 'https://www.tourletent.com/project/safari-tent-in-italy/', | ||
| 133 | -// 'https://www.tourletent.com/project/glass-igloo-in-china/', | ||
| 134 | -// 'https://www.tourletent.com/project/tree-house-in-sichuan/' | ||
| 135 | -// ]; | ||
| 136 | - | ||
| 137 | -// $project_id = 626; | ||
| 138 | -// $project_site = 'v6-m342g.globalso.site'; | ||
| 139 | -// $pages = [ | ||
| 140 | -// 'https://www.lecusostreetlight.com/project_catalog/project/', | ||
| 141 | -// 'https://www.lecusostreetlight.com/project_catalog/project/page/2/', | ||
| 142 | -// 'https://www.lecusostreetlight.com/project/560pcs-250w-smart-led-street-light-in-manila-city-philippines/', | ||
| 143 | -// 'https://www.lecusostreetlight.com/project/3200pcs-8m-150w-solar-street-light-in-cebu-philippines/', | ||
| 144 | -// 'https://lecusostreetlight.com/project/170pcs-100w-split-lithium-battery-solar-street-light-in-tanzania/', | ||
| 145 | -// 'https://www.lecusostreetlight.com/project/250pcs-40w-sl-series-solar-street-light-in-kuwait/', | ||
| 146 | -// 'https://www.lecusostreetlight.com/project/272pcs-8m-80w-solar-street-light-in-tanzania/', | ||
| 147 | -// 'https://www.lecusostreetlight.com/project/185pcs-10m-120w-highway-solar-street-light-in-jordan/', | ||
| 148 | -// 'https://www.lecusostreetlight.com/project/270pcs-9m-patterned-decorative-light-pole-with-150w-led-cobra-light-in-cambodia/', | ||
| 149 | -// 'https://www.lecusostreetlight.com/project/48pcs-5m-24w-decorative-aluminium-pole-in-dubai-uae/', | ||
| 150 | -// 'https://www.lecusostreetlight.com/project/105pcs-9m-100w-led-street-light-in-sri-lanka/', | ||
| 151 | -// 'https://www.lecusostreetlight.com/project/45pcs-6m-hot-dip-galvanized-double-arm-street-light-pole-in-dubai-uae/', | ||
| 152 | -// 'https://www.lecusostreetlight.com/project/356pcs-8m-100w-solar-street-light-in-ethiopia/', | ||
| 153 | -// 'https://www.lecusostreetlight.com/project/52pcs-6m-30w-solar-led-street-light-with-gel-battery-in-poland/', | ||
| 154 | -// 'https://www.lecusostreetlight.com/project/225pcs-6m-80w-solar-street-light-in-vietnam/', | ||
| 155 | -// 'https://www.lecusostreetlight.com/project/450pcs-7m-60w-double-arm-solar-light-in-nigeria/', | ||
| 156 | -// 'https://www.lecusostreetlight.com/project/100pcs-6m-50w-led-street-light-in-maldives/', | ||
| 157 | -// 'https://www.lecusostreetlight.com/project/202pcs-6m-40w-3000k-solar-street-light-in-manila-philippines/', | ||
| 158 | -// 'https://www.lecusostreetlight.com/project/245pcs-120w-smart-led-street-light-in-bangkok-thailand/', | ||
| 159 | -// 'https://www.lecusostreetlight.com/project/170pcs-7m-50w-all-in-one-solar-light-in-davao-philippines/', | ||
| 160 | -// 'https://www.lecusostreetlight.com/project/80pcs-9m-150w-led-street-light-in-iraq/', | ||
| 161 | -// 'https://www.lecusostreetlight.com/project/252pcs-6m-40w-separate-solar-street-light-with-lithium-battery-in-thailand/', | ||
| 162 | -// 'https://www.lecusostreetlight.com/project/198pcs-8m-80w-zc-series-all-in-two-solar-light-in-philippines/', | ||
| 163 | -// 'https://www.lecusostreetlight.com/project/5m-30w-morden-led-garden-light-in-russian/', | ||
| 164 | -// 'https://www.lecusostreetlight.com/project/135pcs-all-in-one-solar-street-light-in-uae-dubai-park/' | ||
| 165 | -// ]; | ||
| 166 | - | ||
| 167 | foreach ($pages as $page) { | 182 | foreach ($pages as $page) { |
| 168 | $this->start_collect(urldecode($page), $project_id, $project_site); | 183 | $this->start_collect(urldecode($page), $project_id, $project_site); |
| 169 | } | 184 | } |
| @@ -213,8 +228,19 @@ class HtmlCustomCollect extends Command | @@ -213,8 +228,19 @@ class HtmlCustomCollect extends Command | ||
| 213 | $html = str_replace($old_info['home_url'], $project_site, $html); | 228 | $html = str_replace($old_info['home_url'], $project_site, $html); |
| 214 | 229 | ||
| 215 | //暂时隐藏小语种 | 230 | //暂时隐藏小语种 |
| 216 | - $html = str_replace('<div class="change-language ensemble">', '<div class="change-language ensemble" style="display: none">', $html); | ||
| 217 | - $html = str_replace('<div class="language_more">', '<div class="language_more" style="display: none">', $html); | 231 | +// $html = str_replace('<div class="change-language ensemble">', '<div class="change-language ensemble" style="display: none">', $html); |
| 232 | +// $html = str_replace('<div class="language_more">', '<div class="language_more" style="display: none">', $html); | ||
| 233 | + | ||
| 234 | + //处理搜索 | ||
| 235 | + preg_match_all('/<form\s+[^>]*?action\s*=\s*(\'|\")(.*?)\\1[^>]*?\/?\s*>/i', $html, $result_search); | ||
| 236 | + $search = $result_search[2] ?? []; | ||
| 237 | + foreach ($search as $vc) { | ||
| 238 | + if((strpos($vc,'search.php') !== false) || (strpos($vc,'index.php') !== false)){ | ||
| 239 | + $html = str_replace($vc,'/search/',$html); | ||
| 240 | + } | ||
| 241 | + } | ||
| 242 | + | ||
| 243 | + //增加统计代码 | ||
| 218 | $html = str_replace('</body>', '<script src="https://ecdn6.globalso.com/public/customerVisit.min.js\"></script></body>', $html); | 244 | $html = str_replace('</body>', '<script src="https://ecdn6.globalso.com/public/customerVisit.min.js\"></script></body>', $html); |
| 219 | 245 | ||
| 220 | //html写入文件 | 246 | //html写入文件 |
-
请 注册 或 登录 后发表评论