From 059297840fe525d1836c600079feaed46fc6bad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 31 Mar 2022 17:33:44 +0800 Subject: [PATCH] 1 --- platformapi/fnpsapi/callback.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platformapi/fnpsapi/callback.go b/platformapi/fnpsapi/callback.go index 36924114..f69c57d3 100644 --- a/platformapi/fnpsapi/callback.go +++ b/platformapi/fnpsapi/callback.go @@ -151,8 +151,7 @@ func (a *API) GetChainOrderStatusNotify(request *http.Request) (shopStatusMsg *O fmt.Println("string==================", string(data)) storeNotify := make(map[string]interface{}, 4) - err = utils.Map2StructByJson(data, storeNotify, true) - if err != nil { + if err = json.Unmarshal(data, storeNotify); err != nil { baseapi.SugarLogger.Debugf("FN GetShopStatusCallbackMsg failed with err:%v", err) callbackResponse = &CallbackResponse{Code: -1} return nil, callbackResponse