f
This commit is contained in:
@@ -64,11 +64,12 @@ func ProcessQYGL4B2ERequest(
|
||||
if errors.Is(err, shujubao.ErrDatasource) {
|
||||
return nil, errors.Join(processors.ErrDatasource, err)
|
||||
}
|
||||
// if errors.Is(err, shujubao.ErrQueryEmpty) {
|
||||
// return nil, errors.Join(processors.ErrNotFound, err)
|
||||
// }
|
||||
if errors.Is(err, shujubao.ErrQueryEmpty) {
|
||||
data = map[string]interface{}{}
|
||||
} else {
|
||||
return nil, errors.Join(processors.ErrSystem, err)
|
||||
}
|
||||
}
|
||||
|
||||
// 原始返回结构处理 - data 是 map[string]interface{} 类型
|
||||
dataMap, ok := data.(map[string]interface{})
|
||||
|
||||
@@ -94,11 +94,12 @@ func ProcessQYGL7D9ARequest(ctx context.Context, params []byte, deps *processors
|
||||
if errors.Is(err, shujubao.ErrDatasource) {
|
||||
return nil, errors.Join(processors.ErrDatasource, err)
|
||||
}
|
||||
// if errors.Is(err, shujubao.ErrQueryEmpty) {
|
||||
// return nil, errors.Join(processors.ErrNotFound, err)
|
||||
// }
|
||||
if errors.Is(err, shujubao.ErrQueryEmpty) {
|
||||
data = map[string]interface{}{}
|
||||
} else {
|
||||
return nil, errors.Join(processors.ErrSystem, err)
|
||||
}
|
||||
}
|
||||
|
||||
// 原始返回结构处理 - data 是 map[string]interface{} 类型
|
||||
dataMap, ok := data.(map[string]interface{})
|
||||
|
||||
@@ -85,11 +85,12 @@ func ProcessQYGL8B4DRequest(ctx context.Context, params []byte, deps *processors
|
||||
if errors.Is(err, shujubao.ErrDatasource) {
|
||||
return nil, errors.Join(processors.ErrDatasource, err)
|
||||
}
|
||||
// if errors.Is(err, shujubao.ErrQueryEmpty) {
|
||||
// return nil, errors.Join(processors.ErrNotFound, err)
|
||||
// }
|
||||
if errors.Is(err, shujubao.ErrQueryEmpty) {
|
||||
data = map[string]interface{}{}
|
||||
} else {
|
||||
return nil, errors.Join(processors.ErrSystem, err)
|
||||
}
|
||||
}
|
||||
|
||||
// 原始返回结构处理 - data 是 map[string]interface{} 类型
|
||||
dataMap, ok := data.(map[string]interface{})
|
||||
|
||||
Reference in New Issue
Block a user