From b171288361fadabf2610d26888f30d6177bbf43c Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Sat, 24 Jan 2026 10:25:13 +0800 Subject: [PATCH] f --- internal/infrastructure/external/zhicha/zhicha_service.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/infrastructure/external/zhicha/zhicha_service.go b/internal/infrastructure/external/zhicha/zhicha_service.go index c57dfb0..29993d0 100644 --- a/internal/infrastructure/external/zhicha/zhicha_service.go +++ b/internal/infrastructure/external/zhicha/zhicha_service.go @@ -210,6 +210,11 @@ func (z *ZhichaService) CallAPI(ctx context.Context, proID string, params map[st return nil, ErrDatasource } + // 201 表示查询为空,返回空对象 + if zhichaResp.Code == "201" { + return map[string]interface{}{}, nil + } + // 返回data字段 return zhichaResp.Data, nil }