Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug修复: 文档日志不能正常显示 #373

Open
s1g0day opened this issue Jan 31, 2023 · 2 comments
Open

bug修复: 文档日志不能正常显示 #373

s1g0day opened this issue Jan 31, 2023 · 2 comments

Comments

@s1g0day
Copy link

s1g0day commented Jan 31, 2023

xxxxx文档日志不能正常显示xxxx

1. 当前使用的版本号

v0.2.1

2. 是否已经升级到新版本

2023.1.31: git clone 最新版

3. 当前遇到的问题及截图

不筛选用户时最新为6-29日

image

筛选之后可以看到是最新日期

image

5. 修复

app\models\log_document.go

原代码 - 211行

rs, err = db.Query(where.Limit(limit, number).OrderBy("log_document_id", "DESC"))

修改为

//rs, err = db.Query(where.Limit(limit, number).OrderBy("log_document_id", "DESC"))
rs, err = db.Query(db.AR().From(Table_LogDocument_Name).Limit(limit, number).OrderBy("log_document_id", "DESC"))

进入到根目录重编译一下

go build ./

替换编译后的mm-wiki

6. 测试

再次打开日志不选择用户, 正常显示最新日期

image

@GX158
Copy link

GX158 commented Jan 31, 2023 via email

@s1g0day
Copy link
Author

s1g0day commented Feb 1, 2023

补充说明: 这个问题不清楚是怎么出现的, 新代码和老代码调试过程中备份次数比较多。刚下载下来时是没什么问题,但替换老代码的数据后就会出现。目前只找到解决方法,还没有找到问题真实原因。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants