fix
This commit is contained in:
parent
148e0681ec
commit
b28fefdb0e
|
@ -204,16 +204,22 @@ func (l *GetOrderDetailLogic) GetOrderDetail(req *types.GetOrderDetailReq, useri
|
||||||
}
|
}
|
||||||
//首款
|
//首款
|
||||||
if payIndex, ok := mapPay[1]; ok {
|
if payIndex, ok := mapPay[1]; ok {
|
||||||
data.PayInfo.Deposit = types.Deposit{
|
data.PayInfo = &types.PayInfo{
|
||||||
Method: *payList[payIndex].Brand,
|
Deposit: types.Deposit{
|
||||||
TransNo: *payList[payIndex].TradeNo,
|
Method: *payList[payIndex].Brand,
|
||||||
|
TransNo: *payList[payIndex].TradeNo,
|
||||||
|
},
|
||||||
|
Final: types.Deposit{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//尾款
|
//尾款
|
||||||
if payIndex, ok := mapPay[2]; ok {
|
if payIndex, ok := mapPay[2]; ok {
|
||||||
data.PayInfo.Final = types.Deposit{
|
data.PayInfo = &types.PayInfo{
|
||||||
Method: *payList[payIndex].Brand,
|
Deposit: types.Deposit{},
|
||||||
TransNo: *payList[payIndex].TradeNo,
|
Final: types.Deposit{
|
||||||
|
Method: *payList[payIndex].Brand,
|
||||||
|
TransNo: *payList[payIndex].TradeNo,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return resp.SetStatusWithMessage(basic.CodeOK, "success", data)
|
return resp.SetStatusWithMessage(basic.CodeOK, "success", data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user