Compare commits

..

No commits in common. '242d6829996c1a3998b40803f8ebcdc77d9f04e1' and '777e03930f874d07b84800a5d0e550def99c77be' have entirely different histories.

@ -26,6 +26,4 @@ https://cdns.fontree.cn/fonchain-main/test/image/0/chain-dci/file/b2b9ebf8-5e8a-
```shell
protoc --proto_path=. --proto_path=D:/go_workspace/src --go_out=./pb --govalidators_out=./pb --go-triple_out=./pb ./pb/dci.proto
protoc --proto_path=. --go-grpc_out=./pb --proto_path=D:/go_workspace/src --go_out=./pb --govalidators_out=./pb --go-triple_out=./pb ./pb/dci.proto
```

@ -109,14 +109,31 @@ func (r *DciRegistration) GetDciPayUrl(req *dci.GetDciPayUrlRequest) (res *dci.G
amount = strings.TrimSpace(e.Text)
})
err = c.Visit(res.PayUrl)
res.Amount = amount
return
}
func (r *DciRegistration) GetDciPayAmount(req *dci.GetDciPayUrlRequest) (res *dci.GetDciPayUrlResponse, err error) {
errCommon.NoReturnInfo(req, "数登支付链接获取 参数信息: ")
res = new(dci.GetDciPayUrlResponse)
getDciPayUrlRequest := new(bccrClient.GetDciPayurlRequest)
_ = copier.CopyWithOption(&getDciPayUrlRequest, req, copier.Option{DeepCopy: false})
clientToken, err := createToken(time.Now().UnixMilli(), req.DigitalRegisterId, app.ModuleClients.SfNode.Generate().Base64())
if err != nil {
errCommon.NoReturnInfo(getDciPayUrlResponse, "数登支付金额获取 失败: ")
return nil, errCommon.ReturnError(err, msg.ErrCreateClientToken, "创建clientToken 失败: ")
}
getDciPayUrlRequest.SetClientToken(clientToken)
res.Amount = amount
getDciPayUrlResponse, err := app.ModuleClients.BccrClient.GetDciPayurl(getDciPayUrlRequest)
if err != nil {
return nil, errCommon.ReturnError(err, msg.ErrGetDciPayurl, "数登支付链接获取 失败: ")
}
fmt.Printf("res : %+v\n", res)
errCommon.NoReturnInfo(getDciPayUrlResponse, "数登支付链接获取 成功: ")
return
}

Loading…
Cancel
Save