f
This commit is contained in:
@@ -39,7 +39,7 @@ func ProcessIVYZZQ3BRequest(ctx context.Context, params []byte, deps *processors
|
||||
"authorized": paramsDto.Authorized,
|
||||
}
|
||||
|
||||
respData, err := deps.ZhichaService.CallAPI(ctx, "ZCI062", reqData)
|
||||
respData, err := deps.ZhichaService.CallAPI(ctx, "ZCI1001", reqData)
|
||||
if err != nil {
|
||||
if errors.Is(err, zhicha.ErrDatasource) {
|
||||
return nil, errors.Join(processors.ErrDatasource, err)
|
||||
@@ -53,7 +53,7 @@ func ProcessIVYZZQ3BRequest(ctx context.Context, params []byte, deps *processors
|
||||
return nil, errors.Join(processors.ErrSystem, err)
|
||||
}
|
||||
|
||||
outBytes, err := mapZCI062RespToIVYZZQ3B(respBytes)
|
||||
outBytes, err := buildToStringmapZCI1001RespToIVYZZQ3B(respBytes)
|
||||
if err != nil {
|
||||
return nil, errors.Join(processors.ErrSystem, err)
|
||||
}
|
||||
@@ -83,7 +83,7 @@ type zci062UpstreamResp struct {
|
||||
Incorrect interface{} `json:"incorrect"`
|
||||
}
|
||||
|
||||
func mapZCI062RespToIVYZZQ3B(respBytes []byte) ([]byte, error) {
|
||||
func buildToStringmapZCI1001RespToIVYZZQ3B(respBytes []byte) ([]byte, error) {
|
||||
var r zci062UpstreamResp
|
||||
if err := json.Unmarshal(respBytes, &r); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user