自定消息类型,风险排查

This commit is contained in:
李子铭 2024-11-28 14:42:53 +08:00
parent fde43f6237
commit 45212916ce
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ func (s *AlipayRedPackService) Query(ctx context.Context, request *proto.QueryRe
var response po.QueryResp
if err = json.Unmarshal(bodyBytes, &response); err != nil {
return nil, err
return nil, proto.ErrorResponseFail(err.Error())
}
return queryResp(request, response), nil