由gopath形式改为module

This commit is contained in:
kongyuebin
2021-04-27 15:33:49 +08:00
parent aef4dbb33c
commit 77d895e83a
1117 changed files with 332447 additions and 20 deletions

View File

@@ -10,7 +10,7 @@
package controllers
import (
"github.com/astaxie/beego"
beego "github.com/beego/beego/v2/server/web"
"github.com/rs/xid"
)
@@ -21,7 +21,7 @@ type HomeAction struct {
/*加载首页及数据*/
func (c *HomeAction) ShowHome() {
//取值
siteName := beego.AppConfig.String("site.name")
siteName, _ := beego.AppConfig.String("site.name")
orderNo := xid.New().String()
productName := "测试应用-支付功能体验(非商品消费)"

View File

@@ -10,8 +10,8 @@
package controllers
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/logs"
"github.com/beego/beego/v2/core/logs"
beego "github.com/beego/beego/v2/server/web"
"strconv"
"strings"
)

View File

@@ -10,12 +10,12 @@
package controllers
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/httplib"
"github.com/astaxie/beego/logs"
"github.com/beego/beego/v2/client/httplib"
"github.com/beego/beego/v2/core/logs"
beego "github.com/beego/beego/v2/server/web"
"github.com/skip2/go-qrcode"
"github.com/widuu/gojson"
"dongfeng-pay/service/utils"
"shop/utils"
"strings"
)