🚧 修复卡片验证问题
This commit is contained in:
5
go.mod
5
go.mod
@@ -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
|
||||
|
||||
5
supplier/third_party/apple.go
vendored
5
supplier/third_party/apple.go
vendored
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user