This commit is contained in:
邹宗楠
2025-09-12 16:23:59 +08:00
parent 641329db6d
commit c4f6462945
11 changed files with 189 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
package mtwmapi
import (
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
"testing"
"time"
@@ -8,7 +9,7 @@ import (
func TestBillList(t *testing.T) {
now := time.Now()
from := time.Date(now.Year(), now.Month(), now.Day()-2, 0, 0, 0, 0, time.Local)
from := time.Date(now.Year(), now.Month(), now.Day()-5, 0, 0, 0, 0, time.Local)
to := time.Date(now.Year(), now.Month(), now.Day()-2, 23, 59, 59, 59, time.Local)
param := &Bill{
AppPoiCode: "4418003",
@@ -19,13 +20,13 @@ func TestBillList(t *testing.T) {
AccessToken: api.token,
}
_, _, _, err := api.GetStoreBillList(param)
_, fine, _, err := api.GetStoreBillList(param)
if err != nil {
globals.SugarLogger.Debugf("err := %v", err)
return
}
//globals.SugarLogger.Debugf("settleId := %d", settleId)
globals.SugarLogger.Debugf("settleId := %s", utils.Format4Output(fine, false))
//for _, v := range data {
// globals.SugarLogger.Debugf("OrderId : %s , TimingFee : %d , DeliveryFee : %d , PlatformSettlement : %d ", v.OrderId, v.TimingFee, v.DeliveryFee, v.PlatformSettlement)
//}