🚧 修复卡片验证问题

This commit is contained in:
孙晓龙
2024-05-22 19:45:13 +08:00
parent 5cab17a991
commit 5d1d06784e
3 changed files with 2089 additions and 4 deletions

5
go.mod
View File

@@ -2,12 +2,13 @@ module gateway
go 1.13
require github.com/beego/beego/v2 v2.1.4
require github.com/beego/beego/v2 v2.2.1
require (
github.com/astaxie/beego v1.12.3
github.com/bytedance/sonic v1.10.2
github.com/go-sql-driver/mysql v1.7.0
github.com/go-redis/redis/v7 v7.4.0 // indirect
github.com/go-sql-driver/mysql v1.8.1
github.com/go-stomp/stomp/v3 v3.0.5
github.com/gogf/gf/v2 v2.7.1
github.com/rs/xid v1.5.0

2083
go.sum

File diff suppressed because it is too large Load Diff

View File

@@ -25,6 +25,7 @@ import (
"gateway/service"
"gateway/supplier"
"gateway/utils"
)
type AppleCardImpl struct {
@@ -59,13 +60,13 @@ func (c *AppleCardImpl) SendCard(jsonStr string, cardInfo supplier.CardInfo, att
cfg := config.Config{}
params := make(map[string]string)
//params["app_key"] = appKey
params["callbackUrl"] = cfg.GetAppleNotifyUrl() // 回调地址
params["attach"] = attach // 附带参数
params["faceType"] = cardInfo.FaceType // 面额
params["faceValue"] = cardInfo.FaceType // 面额
params["cardNo"] = cardInfo.CardNo // 卡号
params["cardPass"] = cardInfo.Data
var err error
params["timestamp"] = strconv.FormatInt(time.Now().Unix(), 10)