1
This commit is contained in:
@@ -2,6 +2,7 @@ package lakala
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"net/http"
|
||||
@@ -203,7 +204,11 @@ func (a *API) QuerySeparateRecipient(orderNo, receiverNo string) (*QuerySeparate
|
||||
return nil, err
|
||||
}
|
||||
|
||||
bodyResult, err := json.Marshal(result)
|
||||
if result["retCode"] != Success {
|
||||
return nil, errors.New(result["retMsg"].(string))
|
||||
}
|
||||
|
||||
bodyResult, err := json.Marshal(result["respData"])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -215,25 +215,25 @@ type QuerySeparateRecipientResp struct {
|
||||
AcctOpenBankName string `json:"acctOpenBankName"` // 收款账户开户名称
|
||||
AcctClearBankCode string `json:"acctClearBankCode"` // 收款账户清算行行号
|
||||
|
||||
//RowStatus interface{} `json:"rowStatus"`
|
||||
//RowSno string `json:"rowSno"`
|
||||
//RowCreateUser interface{} `json:"rowCreateUser"`
|
||||
//RowCreateUserName string `json:"rowCreateUserName"`
|
||||
//RowCreateTm time.Time `json:"rowCreateTm"`
|
||||
//RowModifyUser interface{} `json:"rowModifyUser"`
|
||||
//RowModifyUserName interface{} `json:"rowModifyUserName"`
|
||||
//RowModifyTm time.Time `json:"rowModifyTm"`
|
||||
//RowVerNo interface{} `json:"rowVerNo"`
|
||||
//Id int `json:"id"`
|
||||
//SettlePeriod interface{} `json:"settlePeriod"`
|
||||
//SettleModel interface{} `json:"settleModel"`
|
||||
//ClearDt interface{} `json:"clearDt"`
|
||||
//OrgId string `json:"orgId"`
|
||||
//OrgName string `json:"orgName"`
|
||||
//OrgPath string `json:"orgPath"`
|
||||
//ReceiverStatus interface{} `json:"receiverStatus"`
|
||||
//WalletId string `json:"walletId"`
|
||||
//Remark interface{} `json:"remark"`
|
||||
RowStatus interface{} `json:"rowStatus"`
|
||||
RowSno string `json:"rowSno"`
|
||||
RowCreateUser interface{} `json:"rowCreateUser"`
|
||||
RowCreateUserName string `json:"rowCreateUserName"`
|
||||
RowCreateTm string `json:"rowCreateTm"`
|
||||
RowModifyUser interface{} `json:"rowModifyUser"`
|
||||
RowModifyUserName interface{} `json:"rowModifyUserName"`
|
||||
RowModifyTm string `json:"rowModifyTm"`
|
||||
RowVerNo interface{} `json:"rowVerNo"`
|
||||
Id int `json:"id"`
|
||||
SettlePeriod interface{} `json:"settlePeriod"`
|
||||
SettleModel interface{} `json:"settleModel"`
|
||||
ClearDt interface{} `json:"clearDt"`
|
||||
OrgId string `json:"orgId"`
|
||||
OrgName string `json:"orgName"`
|
||||
OrgPath string `json:"orgPath"`
|
||||
ReceiverStatus interface{} `json:"receiverStatus"`
|
||||
WalletId string `json:"walletId"`
|
||||
Remark interface{} `json:"remark"`
|
||||
}
|
||||
|
||||
// SeparateApplyBindReq 分账关系申请绑定
|
||||
|
||||
@@ -29,16 +29,15 @@ func TestCreateSeparate(t *testing.T) {
|
||||
|
||||
func TestGetSeparate(t *testing.T) {
|
||||
paramter := &SeparateQueryReq{
|
||||
Version: "1.0",
|
||||
OrderNo: "KFPT20230223181747812863750",
|
||||
OrgCode: "1",
|
||||
MerInnerNo: "822*********",
|
||||
MerCupNo: "",
|
||||
Version: Version2,
|
||||
OrderNo: "KFPT20230223181747812863750",
|
||||
OrgCode: "983931",
|
||||
MerCupNo: "822651059990E0M",
|
||||
}
|
||||
|
||||
api.SeparateQuery(paramter)
|
||||
}
|
||||
|
||||
func TestQuerySeparateRecipient(t *testing.T) {
|
||||
api.QuerySeparateRecipient("NEWRETAILSPLIT26687958", "4002022021832894453")
|
||||
api.QuerySeparateRecipient("SR20240010115366", "SR2024000115366")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user