From 74e5825b73911c758949a6a64ac4cb80935c1e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 31 Jul 2023 16:52:31 +0800 Subject: [PATCH] 1 --- platformapi/mtwmapi/mtwmapi_test.go | 8 ++++++-- platformapi/tao_vegetable/order_afs.go | 4 ++-- platformapi/tao_vegetable/order_test.go | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/platformapi/mtwmapi/mtwmapi_test.go b/platformapi/mtwmapi/mtwmapi_test.go index 3b5a8c07..f49d8fcc 100644 --- a/platformapi/mtwmapi/mtwmapi_test.go +++ b/platformapi/mtwmapi/mtwmapi_test.go @@ -20,10 +20,10 @@ func init() { baseapi.Init(sugarLogger) // 菜市 - //api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "") + api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "") // 果园 - api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "") + //api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "") //商超 // api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_ovSLnyKTsMNx0RxMzJ1C7w") //token_n4TwqCntWWuvQwAawzxC0w @@ -50,6 +50,10 @@ func TestGetOAuthCode(t *testing.T) { t.Log(utils.Format4Output(result, false)) } +func TestPreparationMealComplete(t *testing.T) { + api.PreparationMealComplete(1100657633926494664) +} + func TestGetAccessToken(t *testing.T) { result, err := api.GetAccessToken("code_ra0oUBjsRwRf0f5m0wJB9g") if err != nil { diff --git a/platformapi/tao_vegetable/order_afs.go b/platformapi/tao_vegetable/order_afs.go index bb3c5905..8845ee31 100644 --- a/platformapi/tao_vegetable/order_afs.go +++ b/platformapi/tao_vegetable/order_afs.go @@ -238,7 +238,7 @@ func (a *API) GetTransactionOrderList(req *request591.AlibabaWdkOrderListRequest // QueryBillList 获取账单信息 func (a *API) QueryBillList(req *request591.AlibabaWdkBillListRequest) (*domain591.AlibabaWdkBillListTxdBillListGetResult, error) { - //globals.SugarLogger.Debugf("进入 QueryBillList") + globals.SugarLogger.Debugf("进入 QueryBillList : %s", utils.Format4Output(req, false)) client := ability591.NewAbility591(&a.client) data, _ := client.AlibabaWdkBillList(req, a.token) @@ -251,6 +251,6 @@ func (a *API) QueryBillList(req *request591.AlibabaWdkBillListRequest) (*domain5 for _, v := range *kk.TxdBillDetailBOS { globals.SugarLogger.Debugf("kk := %s -- %s == %s", utils.Format4Output(v.BizOrderId, false), *v.OrderType, *v.ReceivableAmount) } - + globals.SugarLogger.Debugf("进入 data.ApiResult.Model : %s", utils.Format4Output(data.ApiResult.Model, false)) return data.ApiResult.Model, nil } diff --git a/platformapi/tao_vegetable/order_test.go b/platformapi/tao_vegetable/order_test.go index a3143588..613e28eb 100644 --- a/platformapi/tao_vegetable/order_test.go +++ b/platformapi/tao_vegetable/order_test.go @@ -22,8 +22,8 @@ func TestName(t *testing.T) { } func TestGetOrderDetail(t *testing.T) { requestParam := &request591.AlibabaAelophyOrderGetRequest{OrderGetRequest: &domain591.AlibabaAelophyOrderGetOrderGetRequest{ - StoreId: utils.String2Pointer("JX102751"), - BizOrderId: utils.Int64ToPointer(5000908068888360754), + StoreId: utils.String2Pointer("JX666708"), + BizOrderId: utils.Int64ToPointer(5000910858776180489), }} data, err := apiTao.QueryOrderDetail(requestParam) globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))