diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index 547ad8e5c..51fe25357 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -358,9 +358,7 @@ func Pay4User(ctx *jxcontext.Context, thingID, payType int, vendorPayType string switch payType { case model.PayTypeTL_DiscountCard: if configList, err := dao.QueryConfigs(db, "会员折扣卡", model.ConfigTypeDiscountCard, ""); err == nil { - data, err := json.Marshal(configList[0].Value) - str := strings.ReplaceAll(string(data), "\\", "") - err = jxutils.Strings2Objs(str, &dicountCards) + json.Unmarshal([]byte(configList[0].Value), &dicountCards) if err != nil { return nil, err }