From cf5fa322be545f335aa08bbade538d4eb090e46a Mon Sep 17 00:00:00 2001 From: richboo111 Date: Mon, 29 Jan 2024 17:25:19 +0800 Subject: [PATCH] 1 --- platformapi/mtwmapi/act.go | 4 ++++ platformapi/mtwmapi/im_test.go | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/platformapi/mtwmapi/act.go b/platformapi/mtwmapi/act.go index 19757aa6..bec8a38f 100644 --- a/platformapi/mtwmapi/act.go +++ b/platformapi/mtwmapi/act.go @@ -1,6 +1,7 @@ package mtwmapi import ( + "git.rosy.net.cn/jx-callback/globals" "strings" "git.rosy.net.cn/baseapi/utils" @@ -394,9 +395,12 @@ func (a *API) RetailDiscountBatchSave2(poiCode string, actType int, actData []*R err = utils.UnmarshalUseNumber([]byte(resultMap[resultKeySuccessMsg].(string)), &actResult) if err == nil { msg = utils.Interface2String(resultMap[resultKeyMsg]) + globals.SugarLogger.Debugf("RetailDiscountBatchSave2 test0129 msg:%v", utils.Format4Output(msg, false)) + } } else { msg = getMsgFromError(err) + globals.SugarLogger.Debugf("RetailDiscountBatchSave2 test0129 err:%v", err) } failedList = parseErr4ErrList(msg) return actResult, failedList, err diff --git a/platformapi/mtwmapi/im_test.go b/platformapi/mtwmapi/im_test.go index 92f36ad7..a679ca93 100644 --- a/platformapi/mtwmapi/im_test.go +++ b/platformapi/mtwmapi/im_test.go @@ -183,3 +183,14 @@ func TestEncryptIm(t *testing.T) { fmt.Println(t2) } + +func TestNew2(t *testing.T) { + //fmt.Println(reflect.TypeOf(file1)) + //fmt.Println(reflect.TypeOf(file3)) + //fmt.Println(reflect.TypeOf(file2)) + + var n = 0 + fmt.Println(n) + fmt.Println(reflect.TypeOf(n)) + +}