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