From 12f0d003e614b989748c5af8b3321890fa19ef0e 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:14:28 +0800 Subject: [PATCH] pay4user --- business/partner/purchase/jx/localjx/order.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index b2c9a75aa..4e3dcda35 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -2,7 +2,6 @@ package localjx import ( "crypto/md5" - "encoding/json" "fmt" "math" "regexp" @@ -358,7 +357,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 { - json.Unmarshal([]byte(configList[0].Value), dicountCards) + utils.UnmarshalUseNumber([]byte(configList[0].Value), dicountCards) if err != nil { return nil, err }