From 46f0cc85c09ac84b25a97c9e4966c6f1d03f4ab3 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:47:30 +0800 Subject: [PATCH] ! --- platformapi/fnpsapi/callback.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platformapi/fnpsapi/callback.go b/platformapi/fnpsapi/callback.go index 48e4ca1d..269d1c88 100644 --- a/platformapi/fnpsapi/callback.go +++ b/platformapi/fnpsapi/callback.go @@ -123,7 +123,7 @@ func (a *API) GetChainstoreStatusNotify(request *http.Request) (shopStatusMsg *C } storeNotify := make(map[string]interface{}, 4) - if err := json.Unmarshal(data, storeNotify); err != nil { + if err := json.Unmarshal(data, &storeNotify); err != nil { baseapi.SugarLogger.Debugf("FN GetChainstoreStatusNotify failed with err:%v", err) callbackResponse = &CallbackResponse{Code: -1} return nil, callbackResponse @@ -151,7 +151,7 @@ func (a *API) GetChainOrderStatusNotify(request *http.Request) (shopStatusMsg *O fmt.Println("string==================", string(data)) storeNotify := make(map[string]interface{}, 4) - if err = json.Unmarshal(data, storeNotify); 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 @@ -178,7 +178,7 @@ func (a *API) GetChainAbnormaltatusNotify(request *http.Request) (shopStatusMsg } storeNotify := make(map[string]interface{}, 4) - if err := json.Unmarshal(data, storeNotify); 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