This commit is contained in:
Mrx
2026-01-24 10:25:13 +08:00
parent 426e6f537c
commit b171288361

View File

@@ -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
}