This commit is contained in:
邹宗楠
2022-04-01 14:22:58 +08:00
parent c7a124b0a9
commit f95c43c47d

View File

@@ -149,13 +149,13 @@ func (a *API) GetChainOrderStatusNotify(request *http.Request) (shopStatusMsg *O
return nil, callbackResponse
}
storeNotify := &OrderStatusNottify{}
//storeNotify := &OrderStatusNottify{}
fmt.Println("string==================", string(data))
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
}
//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
//}
//fmt.Println("======================", storeNotify)
//fnNotify := &OrderCallbackParam{}
@@ -164,10 +164,10 @@ func (a *API) GetChainOrderStatusNotify(request *http.Request) (shopStatusMsg *O
// callbackResponse = &CallbackResponse{Code: -1}
// return nil, callbackResponse
//}
fmt.Println("======================business_data", storeNotify.Param)
fmt.Println("======================business_data", storeNotify.Param.OrderId)
fmt.Println("======================business_data", storeNotify.Param.PartnerOrderCode)
fmt.Println("======================business_data", storeNotify.CallbackBusinessType)
//fmt.Println("======================business_data", storeNotify.Param)
//fmt.Println("======================business_data", storeNotify.Param.OrderId)
//fmt.Println("======================business_data", storeNotify.Param.PartnerOrderCode)
//fmt.Println("======================business_data", storeNotify.CallbackBusinessType)
return nil, SuccessResponse
}