From 7942910a392a4bca272e8ab42067b4192c7e9474 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Thu, 21 Sep 2023 11:28:15 +0800 Subject: [PATCH] nacos config --- run_all_server.sh | 4 ++-- server/info/internal/logic/infologic.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/run_all_server.sh b/run_all_server.sh index b9172a22..c59fa263 100755 --- a/run_all_server.sh +++ b/run_all_server.sh @@ -26,8 +26,8 @@ run_server() { cd - > /dev/null } -find /tmp/go-build* -mmin +5 -exec rm -rf {} + -find /tmp/go-link* -mmin +5 -exec rm -rf {} + +find /tmp/go-build* -mmin +5 -exec rm -rf {} + +find /tmp/go-link* -mmin +5 -exec rm -rf {} + # 列出所有服务器目录 server_dirs=() # 初始化一个空数组 diff --git a/server/info/internal/logic/infologic.go b/server/info/internal/logic/infologic.go index 9de30c6e..e7e2bc64 100644 --- a/server/info/internal/logic/infologic.go +++ b/server/info/internal/logic/infologic.go @@ -133,7 +133,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r for _, mquery := range mquerys { - sqlstr := fmt.Sprintf("select id, module, %s as querydata from %s where %s order by ctime asc limit 1", mquery.EncodeQuery("metadata"), mquery.TableName, mquery.Cond) + sqlstr := fmt.Sprintf("select id, module, %s as querydata from %s where %s order by ctime dec limit 1", mquery.EncodeQuery("metadata"), mquery.TableName, mquery.Cond) raw := l.svcCtx.MysqlConn.Raw(sqlstr)