1
This commit is contained in:
@@ -2,7 +2,6 @@ package mtwmapi
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -60,9 +59,6 @@ func (a *API) GetStoreBillList(param *Bill) (map[string]*SettleOrderList, int64,
|
||||
if !ok {
|
||||
settle = &SettleOrderList{OrderId: v.WmOrderViewId}
|
||||
}
|
||||
if v.WmOrderViewId == "2001521861299113073" {
|
||||
globals.SugarLogger.Debugf("------%s:%s", v.WmOrderViewId, utils.Format4Output(v, false))
|
||||
}
|
||||
switch v.BillChargeType {
|
||||
case BillChargeTypeOrder: // 平台结算
|
||||
settle.PlatformSettlement = v.SettleAmount
|
||||
|
||||
@@ -9,9 +9,9 @@ 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)
|
||||
to := time.Date(now.Year(), now.Month(), now.Day()-1, 23, 59, 59, 59, time.Local)
|
||||
to := time.Date(now.Year(), now.Month(), now.Day()-2, 23, 59, 59, 59, time.Local)
|
||||
param := &Bill{
|
||||
AppPoiCode: "20046303",
|
||||
AppPoiCode: "7290541",
|
||||
StartDate: from.Unix(),
|
||||
EndDate: to.Unix(),
|
||||
Offset: 0,
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func TestCommentQuery(t *testing.T) {
|
||||
result, err := api.CommentQuery("27674533", "20250420", "20250514", 40, 20, CommentReplyStatusAll)
|
||||
result, err := api.CommentQuery("27674533", "20250426", "20250514", 0, 0, CommentReplyStatusAll)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -20,13 +20,13 @@ func init() {
|
||||
baseapi.Init(sugarLogger)
|
||||
|
||||
// 菜市
|
||||
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
|
||||
// 果园
|
||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||
|
||||
//商超
|
||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_n49KrTnbe-Qatd-80sFOnQ")
|
||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_oku5J6-UzKWdNwcNdXNOKA")
|
||||
//cookieStr := `
|
||||
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||
//`
|
||||
|
||||
@@ -144,13 +144,16 @@ func TestOrderGetRiderInfoPhoneNumber(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetOrderRefundDetail(t *testing.T) {
|
||||
result, err := api.GetOrderRefundDetail(301135342863962437, 0)
|
||||
result, err := api.GetOrderRefundDetail(3901636712926079606, 0)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func Test111(t *testing.T) {
|
||||
fmt.Println(utils.Float64TwoInt64((6.32 / 15.8) * float64(950)))
|
||||
}
|
||||
func TestGetOrderRefundDetail2(t *testing.T) {
|
||||
result, err := api.GetOrderRefundDetail(601112850243823799, 0)
|
||||
if err != nil {
|
||||
|
||||
@@ -189,7 +189,7 @@ func TestRetailListCase(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRetailGet(t *testing.T) {
|
||||
orderDetail, _ := api.OrderGetOrderDetail(4101393090068943089, false)
|
||||
orderDetail, _ := api.OrderGetOrderDetail(3801609511466390200, false)
|
||||
if addressFee, ok := orderDetail["address_change_fee"]; ok {
|
||||
fmt.Println(addressFee)
|
||||
}
|
||||
@@ -201,6 +201,13 @@ func TestRetailGet(t *testing.T) {
|
||||
//t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestCCC(t *testing.T) {
|
||||
data := "[\"13812345678_1236\",\"13812345678_3456\"]"
|
||||
phones := make([]string, 0, 0)
|
||||
json.Unmarshal([]byte(data), &phones)
|
||||
|
||||
fmt.Println(data)
|
||||
}
|
||||
func TestRetailGetSpTagIds(t *testing.T) {
|
||||
result, err := api.RetailGetSpTagIds()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user