mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 19:00:55 +00:00
fix the commentsRouter init sequence
This commit is contained in:
parent
1e92d17605
commit
07c628c7e9
@ -47,7 +47,7 @@ var (
|
||||
genInfoList map[string][]ControllerComments
|
||||
)
|
||||
|
||||
const COMMENTFL = "commentsRouter.go"
|
||||
const COMMENTFL = "commentsRouter_"
|
||||
|
||||
func init() {
|
||||
pkgLastupdate = make(map[string]int64)
|
||||
@ -55,7 +55,7 @@ func init() {
|
||||
|
||||
func parserPkg(pkgRealpath, pkgpath string) error {
|
||||
rep := strings.NewReplacer("/", "_", ".", "_")
|
||||
commentFilename = rep.Replace(pkgpath) + "_" + COMMENTFL
|
||||
commentFilename = COMMENTFL + rep.Replace(pkgpath) + ".go"
|
||||
if !compareFile(pkgRealpath) {
|
||||
Info(pkgRealpath + " don't has updated")
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user