This commit is contained in:
richboo111
2023-02-23 17:17:13 +08:00
7 changed files with 18 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ import (
func TestBillDetail(t *testing.T) {
a.GetSettleBillDetailV3(&order_getSettleBillDetailV3_request.OrderGetSettleBillDetailV3Param{
Size: 10,
OrderId: "5006155889577954309",
OrderId: "5035210591285239695",
})
}

View File

@@ -25,9 +25,11 @@ func (a *API) GetSettleBillDetailV3(param *order_getSettleBillDetailV3_request.O
}
var totalShopMoney int64 = 0
var postAmount int64 = 0
for _, v := range result.Data.Data {
totalShopMoney += v.SettleAmount
postAmount += v.PostAmount
}
return totalShopMoney, result.Data.NextStartIndex, nil
return totalShopMoney - postAmount, result.Data.NextStartIndex, nil
}