This commit is contained in:
杨志
2026-01-20 18:12:28 +08:00
parent b458e63245
commit 4f0c2112e7
2 changed files with 5 additions and 5 deletions

View File

@@ -291,8 +291,8 @@ class Crawler extends BaseController
foreach ($treeData as $item) {
if (isset($item['CODE']) && !empty($item['CODE'])) {
$code = $item['CODE'];
// 跳过1520开头的职位代码
if (strpos($code, '1520') === 0) {
// 跳过152开头的职位代码
if (strpos($code, '152') === 0) {
continue;
}
$zwdmList[] = $code;

View File

@@ -628,11 +628,11 @@
return;
}
// 过滤掉1520开头的职位代码
// 过滤掉152开头的职位代码
const codes = listResp.data
.map(it => it.zwdm)
.filter(code => !code.startsWith('1520'));
showMessage('result-message', `${codes.length} 个职位已跳过1520开头),开始逐条获取...`, 'info');
.filter(code => !code.startsWith('152'));
showMessage('result-message', `${codes.length} 个职位已跳过152开头开始逐条获取...`, 'info');
// 逐条获取职位详情
for (let i = 0; i < codes.length; i++) {