This commit is contained in:
邹宗楠
2022-03-31 17:47:30 +08:00
parent e516584705
commit 46f0cc85c0

View File

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