Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d502d371a | ||
|
|
6edab2db55 |
@@ -33,9 +33,9 @@ type QueryLedgerMerReqData struct {
|
||||
// 包含响应状态码、消息和业务数据
|
||||
type QueryLedgerMerResponse struct {
|
||||
// 响应状态码,000000表示成功
|
||||
Code string `json:"code"`
|
||||
RetCode string `json:"retCode"`
|
||||
// 响应消息
|
||||
Msg string `json:"msg"`
|
||||
RetMsg string `json:"retMsg"`
|
||||
// 响应业务数据,当code为000000时返回
|
||||
RespData *QueryLedgerMerRespData `json:"respData"`
|
||||
}
|
||||
@@ -52,7 +52,7 @@ type QueryLedgerMerRespData struct {
|
||||
// 银联商户号
|
||||
MerCupNo string `json:"merCupNo"`
|
||||
// 最低分账比例(百分比,支持2位精度),取值说明:70或70.50
|
||||
SplitLowestRatio string `json:"splitLowestRatio"`
|
||||
SplitLowestRatio float64 `json:"splitLowestRatio"`
|
||||
// 商户分账状态,取值说明:VALID启用,INVALID禁用
|
||||
SplitStatus string `json:"splitStatus"`
|
||||
// 分账范围,取值说明:ALL:全部交易分账(商户所有交易默认待分账),MARK:标记交易分账(只有带分账标识交易待分账,其余交易正常结算),默认:MARK
|
||||
@@ -86,5 +86,5 @@ type BindRelation struct {
|
||||
// 成功条件:响应码为000000
|
||||
// 返回值:true表示成功,false表示失败
|
||||
func (resp *QueryLedgerMerResponse) SuccessOrFail() bool {
|
||||
return resp.Code == "000000"
|
||||
return resp.RetCode == "000000"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user