This commit is contained in:
苏尹岚
2020-09-18 10:07:39 +08:00
parent 17d9bc553d
commit d12691e5f1

View File

@@ -358,9 +358,7 @@ func Pay4User(ctx *jxcontext.Context, thingID, payType int, vendorPayType string
switch payType { switch payType {
case model.PayTypeTL_DiscountCard: case model.PayTypeTL_DiscountCard:
if configList, err := dao.QueryConfigs(db, "会员折扣卡", model.ConfigTypeDiscountCard, ""); err == nil { if configList, err := dao.QueryConfigs(db, "会员折扣卡", model.ConfigTypeDiscountCard, ""); err == nil {
data, err := json.Marshal(configList[0].Value) json.Unmarshal([]byte(configList[0].Value), &dicountCards)
str := strings.ReplaceAll(string(data), "\\", "")
err = jxutils.Strings2Objs(str, &dicountCards)
if err != nil { if err != nil {
return nil, err return nil, err
} }