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