f 去掉66sl
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user