This commit is contained in:
richboo111
2024-01-29 17:25:19 +08:00
parent b98bbba9f4
commit cf5fa322be
2 changed files with 15 additions and 0 deletions

View File

@@ -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

View File

@@ -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))
}