This commit is contained in:
邹宗楠
2022-03-31 17:15:42 +08:00
parent 4a5cfeef17
commit 965bf190a1
2 changed files with 3 additions and 9 deletions

View File

@@ -145,7 +145,7 @@ func (a *API) GetChainOrderStatusNotify(request *http.Request) (shopStatusMsg *O
}
fmt.Println("string==================", string(data))
storeNotify := &ShortStatus{}
storeNotify := make(map[string]interface{}, 4)
err = utils.Map2StructByJson(data, storeNotify, true)
if err != nil {
baseapi.SugarLogger.Debugf("FN GetShopStatusCallbackMsg failed with err:%v", err)
@@ -155,7 +155,7 @@ func (a *API) GetChainOrderStatusNotify(request *http.Request) (shopStatusMsg *O
fmt.Println("======================", storeNotify)
fnNotify := &OrderStatusNottify{}
if err := json.Unmarshal([]byte(utils.Interface2String(storeNotify.BusinessData)), fnNotify); err != nil {
if err := json.Unmarshal([]byte(utils.Interface2String(storeNotify["business_data"])), fnNotify); err != nil {
baseapi.SugarLogger.Debugf("FN callback string to ChainstoreStatusNotify failed with err:%v", err)
callbackResponse = &CallbackResponse{Code: -1}
return nil, callbackResponse