mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-04 19:32:17 +08:00
fix: log support ex
This commit is contained in:
parent
84e78edc2f
commit
90f7368e2a
@ -50,13 +50,14 @@ func (t *thirdServer) UploadLogs(ctx context.Context, req *third.UploadLogsReq)
|
|||||||
platform := constant.PlatformID2Name[int(req.Platform)]
|
platform := constant.PlatformID2Name[int(req.Platform)]
|
||||||
for _, fileURL := range req.FileURLs {
|
for _, fileURL := range req.FileURLs {
|
||||||
log := relationtb.Log{
|
log := relationtb.Log{
|
||||||
Version: req.Version,
|
|
||||||
SystemType: req.SystemType,
|
|
||||||
Platform: platform,
|
Platform: platform,
|
||||||
UserID: userID,
|
UserID: userID,
|
||||||
CreateTime: time.Now(),
|
CreateTime: time.Now(),
|
||||||
Url: fileURL.URL,
|
Url: fileURL.URL,
|
||||||
FileName: fileURL.Filename,
|
FileName: fileURL.Filename,
|
||||||
|
SystemType: req.SystemType,
|
||||||
|
Version: req.Version,
|
||||||
|
Ex: req.Ex,
|
||||||
}
|
}
|
||||||
for i := 0; i < 20; i++ {
|
for i := 0; i < 20; i++ {
|
||||||
id := genLogID()
|
id := genLogID()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user