This commit is contained in:
邹宗楠
2023-07-10 16:57:01 +08:00
parent dd0f65c3fa
commit f6e9dca62b

View File

@@ -324,10 +324,12 @@ func (c *PurchaseHandler) onAfsOrderMsg(status string, msg interface{}) (retVal
skuStr := *v.Attributes
str2, err := strconv.Unquote("\"" + skuStr + "\"")
if err != nil {
globals.SugarLogger.Debugf("Unquote := %s", utils.Format4Output(err, false))
return tao_vegetable.CallBackResultInfo(err)
}
skuDetail := tao_vegetable.GoodsScarceRefund{}
if err := json.Unmarshal([]byte(str2), &skuDetail); err != nil {
globals.SugarLogger.Debugf("Unmarshal := %s", utils.Format4Output(err, false))
return tao_vegetable.CallBackResultInfo(err)
}