From d12691e5f1f419e8b18380e23c819a762ad338e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 18 Sep 2020 10:07:39 +0800 Subject: [PATCH] pay4user --- business/partner/purchase/jx/localjx/order.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }