提交 07c628c7 编写于 作者: A astaxie

fix the commentsRouter init sequence

上级 1e92d176
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册