将goutils这个包中的方法替换成xid.New.String()

This commit is contained in:
kongyuebin 2020-01-02 11:54:08 +08:00
parent fab86cd759
commit a4ebda6753

View File

@ -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 := "测试应用-支付功能体验(非商品消费)"
//数据回显 //数据回显