f 去掉66sl

This commit is contained in:
Mrx
2026-01-28 15:55:38 +08:00
parent b1f573c230
commit b2f0b47896
2 changed files with 30 additions and 30 deletions

View File

@@ -454,37 +454,37 @@ func enrichCompaniesWithDetails(ctx context.Context, companies []CompanyInfo, id
}()
// 调用QYGL66SL- 企业涉诉信息
detailWg.Add(1)
go func() {
defer detailWg.Done()
result := callQYGL66SLProcessorSafely(ctx, comp.CreditCode, comp.Name, deps)
// detailWg.Add(1)
// go func() {
// defer detailWg.Done()
// result := callQYGL66SLProcessorSafely(ctx, comp.CreditCode, comp.Name, deps)
enriched.LawsuitInfo = result
// QYGL66SL返回的是特殊格式需要检查是否有数据
hasData := false
if resultMap, ok := result.(map[string]interface{}); ok {
for _, v := range resultMap {
if vMap, ok := v.(map[string]interface{}); ok {
if msg, ok := vMap["msg"].(string); ok && msg == "成功" {
hasData = true
break
}
}
}
}
// enriched.LawsuitInfo = result
// // QYGL66SL返回的是特殊格式需要检查是否有数据
// hasData := false
// if resultMap, ok := result.(map[string]interface{}); ok {
// for _, v := range resultMap {
// if vMap, ok := v.(map[string]interface{}); ok {
// if msg, ok := vMap["msg"].(string); ok && msg == "成功" {
// hasData = true
// break
// }
// }
// }
// }
detailMu.Lock()
status := "success"
if !hasData {
status = "empty"
}
processorResults = append(processorResults, processorResult{
processorType: "QYGL66SL",
status: status,
hasData: hasData,
})
detailMu.Unlock()
}()
// detailMu.Lock()
// status := "success"
// if !hasData {
// status = "empty"
// }
// processorResults = append(processorResults, processorResult{
// processorType: "QYGL66SL",
// status: status,
// hasData: hasData,
// })
// detailMu.Unlock()
// }()
// 调用QYGL7D9A - 欠税公告
detailWg.Add(1)