This commit is contained in:
邹宗楠
2023-07-10 17:02:08 +08:00
parent d05fb9d0cb
commit e11958e45d

View File

@@ -320,15 +320,8 @@ func (c *PurchaseHandler) onAfsOrderMsg(status string, msg interface{}) (retVal
for _, v := range *scarceGoods {
var refundFee int64 = 0
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(skuStr), &skuDetail); err != nil {
globals.SugarLogger.Debugf("Unmarshal := %s", utils.Format4Output(err, false))
if err := json.Unmarshal([]byte(*v.Attributes), &skuDetail); err != nil {
return tao_vegetable.CallBackResultInfo(err)
}