pay4user
This commit is contained in:
@@ -358,7 +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 {
|
||||||
json.Unmarshal([]byte(configList[0].Value), &dicountCards)
|
json.Unmarshal([]byte(configList[0].Value), dicountCards)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user