pay4
This commit is contained in:
@@ -2,6 +2,7 @@ package localjx
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/md5"
|
"crypto/md5"
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"regexp"
|
"regexp"
|
||||||
@@ -357,8 +358,8 @@ 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 {
|
||||||
fmt.Println("test11111111111111111", utils.Format4Output(configList, false))
|
str, err := json.Marshal(configList[0])
|
||||||
err = jxutils.Strings2Objs(configList[0], &dicountCards)
|
err = jxutils.Strings2Objs(string(str), &dicountCards)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user