From 9cf82022a4eb0cdaf7fb5b8b649c46a84d00d4f9 Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Mon, 29 Jul 2024 15:42:56 +0800 Subject: [PATCH] fix: search log can return platform --- internal/rpc/third/log.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/rpc/third/log.go b/internal/rpc/third/log.go index cd52727cba..80c9ed1600 100644 --- a/internal/rpc/third/log.go +++ b/internal/rpc/third/log.go @@ -26,7 +26,6 @@ import ( "github.com/openimsdk/protocol/third" "github.com/openimsdk/tools/errs" "github.com/openimsdk/tools/utils/datautil" - "github.com/openimsdk/tools/utils/stringutil" ) func genLogID() string { @@ -111,7 +110,7 @@ func dbToPbLogInfos(logs []*relationtb.Log) []*third.LogInfo { return &third.LogInfo{ Filename: log.FileName, UserID: log.UserID, - Platform: stringutil.StringToInt32(log.Platform), + Platform: int32(constant.PlatformName2ID[log.Platform]), Url: log.Url, CreateTime: log.CreateTime.UnixMilli(), LogID: log.LogID,