From a87421a05f1400296d563c45550a5faca16630ad Mon Sep 17 00:00:00 2001 From: Tenko Date: Thu, 11 Jul 2024 09:31:52 +0800 Subject: [PATCH] Update arknights_utils.go --- src/utils/arknights_utils.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/arknights_utils.go b/src/utils/arknights_utils.go index 82312ee..5381015 100644 --- a/src/utils/arknights_utils.go +++ b/src/utils/arknights_utils.go @@ -75,9 +75,11 @@ func updateData() { if !DataNeedUpdate { return } + // 重置 + recruitOperatorList = nil + //operators operatorsJson := RedisGet("operatorList") -operators=nil json.Unmarshal([]byte(operatorsJson), &operators) operatorMap = make(map[string]Operator) operatorTree = suffixtree.NewGeneralizedSuffixTree()