From aab79b3bc8f26b8afee6726dd5ae5b7652381a61 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 31 七月 2019 16:24:01 +0800
Subject: [PATCH] rm log
---
controllers/fileController.go | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/controllers/fileController.go b/controllers/fileController.go
index 95c7146..f0eb62f 100644
--- a/controllers/fileController.go
+++ b/controllers/fileController.go
@@ -283,7 +283,7 @@
resultList = append(resultList,cr)
}
}
- logger.Debug("GetCompareDataTwice.data:",resultList)
+ //logger.Debug("GetCompareDataTwice.data:",resultList)
service.SortByScore(resultList)
from := (arg.Page-1)*arg.Size
to := from + arg.Size
@@ -296,7 +296,8 @@
if to <= len(resultList) {
m["totalList"] = resultList[from:to]
} else {
- m["totalList"] = resultList[from:len(resultList)]
+ lte := len(resultList)
+ m["totalList"] = resultList[from:lte]
}
} else {
m["totalList"] = []service.CompareResult{}
--
Gitblit v1.8.0