f
This commit is contained in:
@@ -210,6 +210,11 @@ func (z *ZhichaService) CallAPI(ctx context.Context, proID string, params map[st
|
|||||||
return nil, ErrDatasource
|
return nil, ErrDatasource
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 201 表示查询为空,返回空对象
|
||||||
|
if zhichaResp.Code == "201" {
|
||||||
|
return map[string]interface{}{}, nil
|
||||||
|
}
|
||||||
|
|
||||||
// 返回data字段
|
// 返回data字段
|
||||||
return zhichaResp.Data, nil
|
return zhichaResp.Data, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user