1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

企业微信-移除可省略的错误判断 (#734)

Co-authored-by: markwang <www.wang61@qq.com>
This commit is contained in:
markwang
2023-10-10 19:31:23 +08:00
committed by GitHub
parent da5067bcb2
commit 3f1c5e7637
25 changed files with 175 additions and 382 deletions

View File

@@ -86,10 +86,8 @@ func (r *Client) GetInvoiceInfo(req *GetInvoiceInfoRequest) (*GetInvoiceInfoResp
return nil, err
}
result := &GetInvoiceInfoResponse{}
if err = util.DecodeWithError(response, result, "GetInvoiceInfo"); err != nil {
return nil, err
}
return result, nil
err = util.DecodeWithError(response, result, "GetInvoiceInfo")
return result, err
}
// UpdateInvoiceStatusRequest 更新发票状态请求
@@ -184,8 +182,6 @@ func (r *Client) GetInvoiceInfoBatch(req *GetInvoiceInfoBatchRequest) (*GetInvoi
return nil, err
}
result := &GetInvoiceInfoBatchResponse{}
if err = util.DecodeWithError(response, result, "GetInvoiceInfoBatch"); err != nil {
return nil, err
}
return result, nil
err = util.DecodeWithError(response, result, "GetInvoiceInfoBatch")
return result, err
}