This commit is contained in:
苏尹岚
2020-09-18 10:14:28 +08:00
parent ab80aaa441
commit 12f0d003e6

View File

@@ -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
}