From 51ca5dd71d62de2965fb53cff9d03c0d3552eabb Mon Sep 17 00:00:00 2001 From: geekgeekrun Date: Tue, 14 Oct 2025 01:49:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20when=20choose=20"=E5=BA=94=E5=B1=8A?= =?UTF-8?q?=E7=94=9F"=20in=20"=E5=B7=A5=E4=BD=9C=E7=BB=8F=E9=AA=8C",=20eve?= =?UTF-8?q?ry=20job=20is=20marked=20as=20not=20suit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/geek-auto-start-chat-with-boss/index.mjs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/geek-auto-start-chat-with-boss/index.mjs b/packages/geek-auto-start-chat-with-boss/index.mjs index 20722ac..d9b4a6a 100644 --- a/packages/geek-auto-start-chat-with-boss/index.mjs +++ b/packages/geek-auto-start-chat-with-boss/index.mjs @@ -108,7 +108,18 @@ const isSalaryFilterEnabled = expectSalaryLow || expectSalaryHigh const strategyScopeOptionWhenMarkSalaryNotMatch = readConfigFile('boss.json').strategyScopeOptionWhenMarkSalaryNotMatch ?? StrategyScopeOptionWhenMarkJobNotMatch.ONLY_COMPANY_MATCHED_JOB // work exp -const expectWorkExpList = readConfigFile('boss.json').expectWorkExpList ?? [] +let expectWorkExpList = readConfigFile('boss.json').expectWorkExpList ?? [] +const expectWorkExpListSet = new Set(expectWorkExpList) +if ( + expectWorkExpListSet.has('应届生') || + expectWorkExpListSet.has('在校生') +) { + expectWorkExpListSet.delete('应届生') + expectWorkExpListSet.delete('在校生') + expectWorkExpListSet.add('在校/应届') +} +expectWorkExpList = Array.from(expectWorkExpListSet) + const expectWorkExpNotMatchStrategy = readConfigFile('boss.json').expectWorkExpNotMatchStrategy ?? MarkAsNotSuitOp.NO_OP const strategyScopeOptionWhenMarkJobWorkExpNotMatch = readConfigFile('boss.json').strategyScopeOptionWhenMarkJobWorkExpNotMatch ?? StrategyScopeOptionWhenMarkJobNotMatch.ONLY_COMPANY_MATCHED_JOB