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