From 73ce219a6f6119f2267641f0aac6b682006d8ed4 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Mon, 8 Jan 2024 13:55:52 +0800 Subject: [PATCH] 1 --- platformapi/sfps2/callback.go | 2 +- platformapi/sfps2/sf_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platformapi/sfps2/callback.go b/platformapi/sfps2/callback.go index 9617a96a..70ec9230 100644 --- a/platformapi/sfps2/callback.go +++ b/platformapi/sfps2/callback.go @@ -146,7 +146,7 @@ func (a *API) GetCallbackUrlIndex(request *http.Request) (map[string]interface{} if err = json.Unmarshal(data, &temp); err == nil { urlIndex = temp["url_index"].(string) } - globals.SugarLogger.Debugf("sfsfsf test data=%s,urlIndex=%s", utils.Format4Output(data, false), urlIndex) + globals.SugarLogger.Debugf("sfsfsf test data=%s,urlIndex=%s", utils.Format4Output(temp, false), urlIndex) result := make(map[string]interface{}, 0) switch urlIndex { case UrlIndexRiderStatus: diff --git a/platformapi/sfps2/sf_test.go b/platformapi/sfps2/sf_test.go index 0389259a..c2b51900 100644 --- a/platformapi/sfps2/sf_test.go +++ b/platformapi/sfps2/sf_test.go @@ -65,7 +65,7 @@ func TestCreateOrder(t *testing.T) { DevId: AppID, ShopId: TestSFStoreID, ShopType: 1, - ShopOrderId: "2023090806", + ShopOrderId: "20240108", OrderSequence: "测试", OrderSource: OrderSourceELM, OrderTime: 1694168441,