mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2024-11-22 10:19:25 +08:00
将goutils这个包中的方法替换成xid.New.String()
This commit is contained in:
parent
fab86cd759
commit
a4ebda6753
@ -11,7 +11,7 @@ package controllers
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
"github.com/kvpay/goutils"
|
"github.com/rs/xid"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HomeAction struct {
|
type HomeAction struct {
|
||||||
@ -22,7 +22,7 @@ type HomeAction struct {
|
|||||||
func (c *HomeAction) ShowHome() {
|
func (c *HomeAction) ShowHome() {
|
||||||
//取值
|
//取值
|
||||||
siteName := beego.AppConfig.String("site.name")
|
siteName := beego.AppConfig.String("site.name")
|
||||||
orderNo := goutils.NewContext("Joker").GetUUID()
|
orderNo := xid.New().String()
|
||||||
productName := "测试应用-支付功能体验(非商品消费)"
|
productName := "测试应用-支付功能体验(非商品消费)"
|
||||||
|
|
||||||
//数据回显
|
//数据回显
|
||||||
|
Loading…
Reference in New Issue
Block a user