fix
This commit is contained in:
@@ -2352,19 +2352,9 @@ func (a *ApiRequestService) ProcessG09XM02Request(ctx context.Context, params []
|
|||||||
if err != nil && resp == nil {
|
if err != nil && resp == nil {
|
||||||
return nil, fmt.Errorf("婚姻状态查询失败: %v", err)
|
return nil, fmt.Errorf("婚姻状态查询失败: %v", err)
|
||||||
}
|
}
|
||||||
result := gjson.GetBytes(resp, "data")
|
|
||||||
if !result.Exists() {
|
|
||||||
return nil, fmt.Errorf("婚姻状态查询失败")
|
|
||||||
}
|
|
||||||
|
|
||||||
// 序列化为JSON
|
|
||||||
jsonResponse, err := json.Marshal(result)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("序列化结果失败: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return &APIInternalResult{
|
return &APIInternalResult{
|
||||||
Data: jsonResponse,
|
Data: resp,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2396,14 +2386,8 @@ func (a *ApiRequestService) ProcessG10XM02Request(ctx context.Context, params []
|
|||||||
return nil, callApiErr
|
return nil, callApiErr
|
||||||
}
|
}
|
||||||
|
|
||||||
// 序列化为JSON
|
|
||||||
jsonResponse, err := json.Marshal(resp)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("序列化结果失败: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return &APIInternalResult{
|
return &APIInternalResult{
|
||||||
Data: jsonResponse,
|
Data: resp,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
func (a *ApiRequestService) ProcessG11BJ06Request(ctx context.Context, params []byte) (*APIInternalResult, error) {
|
func (a *ApiRequestService) ProcessG11BJ06Request(ctx context.Context, params []byte) (*APIInternalResult, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user