微信红包

This commit is contained in:
ziming 2025-11-26 10:34:34 +08:00
parent 953c37476d
commit d28bbf956c
2 changed files with 3 additions and 5 deletions

View File

@ -105,10 +105,6 @@ func queryReq(order *proto.QueryRequest_Order) (*transfer.GetTransferBillByOutNo
func queryResp(request *proto.QueryRequest, response *transfer.TransferBillEntity) (*proto.QueryResponse, error) {
if response.FailReason != nil {
return nil, fmt.Errorf("%s-%s", response.State.GetText(), transfer.GetFailReasonMsg(*response.FailReason))
}
// 返回出去
data, _ := json.Marshal(response)
@ -126,7 +122,7 @@ func queryResp(request *proto.QueryRequest, response *transfer.TransferBillEntit
func notifyResp(response *transfer.TransferBillEntity) *proto.NotifyResponse {
// 返回出去
// 返回出去 转账完成或者转账失败对应单据状态status的值为SUCCESS、CANCELLED和FAIL
data, _ := json.Marshal(response)
return &proto.NotifyResponse{

View File

@ -97,6 +97,8 @@ func (srv *Transfer) TransferQueryByTransferBillNo(_ context.Context, req *GetTr
}
// TransferNotify 转账通知 @link https://pay.weixin.qq.com/doc/v3/merchant/4012712115
//
// 转账完成或者转账失败对应单据状态status的值为SUCCESS、CANCELLED和FAIL
func (srv *Transfer) TransferNotify(_ context.Context, headers *http.Header, respBody []byte) (response *TransferBillEntity, err error) {
bizStr, err := srv.Verify(headers, respBody)