Fix search log (#2425)

* feat: update alert email template

* fix: search log

* fix: log support ex
This commit is contained in:
icey-yu
2024-07-23 10:26:04 +08:00
committed by GitHub
parent d0d33b6b78
commit 8087f705c0
3 changed files with 36 additions and 14 deletions
+3 -2
View File
@@ -50,13 +50,14 @@ func (t *thirdServer) UploadLogs(ctx context.Context, req *third.UploadLogsReq)
platform := constant.PlatformID2Name[int(req.Platform)]
for _, fileURL := range req.FileURLs {
log := relationtb.Log{
Version: req.Version,
SystemType: req.SystemType,
Platform: platform,
UserID: userID,
CreateTime: time.Now(),
Url: fileURL.URL,
FileName: fileURL.Filename,
SystemType: req.SystemType,
Version: req.Version,
Ex: req.Ex,
}
for i := 0; i < 20; i++ {
id := genLogID()