1
This commit is contained in:
26
platformapi/mtwmapi/bill_list_test.go
Normal file
26
platformapi/mtwmapi/bill_list_test.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package mtwmapi
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestBillList(t *testing.T) {
|
||||
now := time.Now()
|
||||
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()-5, 23, 59, 59, 59, time.Local)
|
||||
param := &Bill{
|
||||
AppPoiCode: "16967920",
|
||||
StartDate: from.Unix(),
|
||||
EndDate: to.Unix(),
|
||||
Offset: 0,
|
||||
Limit: 200,
|
||||
}
|
||||
|
||||
data, _ := api.GetStoreBillList(param)
|
||||
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data.Data[0], false))
|
||||
// performanceServiceFee 订单配送费
|
||||
// userPayShippingAmount 用户支付配送费
|
||||
}
|
||||
Reference in New Issue
Block a user