Skip to content

适配新的beego,修复构建错误 #14

@zyfdegh

Description

@zyfdegh

我在用beego 1.7.2,执行构建时,会有一些地方不兼容了,需要改一下。

-       this.TplNames = this.moduleName + "/account/login.html"
+       this.TplName = this.moduleName + "/account/login.html"

// ...
-       tagobj.Query().Filter("name__in", oldtags).Update(orm.Params{"count": orm.ColValue(orm.Col_Minus, 1)})
+       tagobj.Query().Filter("name__in", oldtags).Update(orm.Params{"count": orm.ColValue(orm.ColMinus, 1)})

// ...
-       this.ServeJson()
+       this.ServeJSON()

// ...
-       if _, err := os.Stat(beego.ViewsPath + "/" + theme + "/layout.html"); err == nil {
+       if _, err := os.Stat(beego.BConfig.WebConfig.ViewsPath + "/" + theme + "/layout.html"); err == nil {

// ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions