mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-11 05:46:27 +08:00
Merge remote-tracking branch 'origin/tuoyun' into tuoyun
This commit is contained in:
commit
12df670681
@ -24,7 +24,7 @@ func (f *fileHook) Levels() []logrus.Level {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *fileHook) Fire(entry *logrus.Entry) error {
|
func (f *fileHook) Fire(entry *logrus.Entry) error {
|
||||||
entry.Data["FilePath"] = findCaller(5)
|
entry.Data["FilePath"] = findCaller(6)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,10 +55,12 @@ func CreateToken(userID string, platformID int32) (string, int64, error) {
|
|||||||
deleteTokenKey = append(deleteTokenKey, k)
|
deleteTokenKey = append(deleteTokenKey, k)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(deleteTokenKey) != 0 {
|
||||||
err = commonDB.DB.DeleteTokenByUidPid(userID, platformID, deleteTokenKey)
|
err = commonDB.DB.DeleteTokenByUidPid(userID, platformID, deleteTokenKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", 0, err
|
return "", 0, err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
err = commonDB.DB.AddTokenFlag(userID, platformID, tokenString, constant.NormalToken)
|
err = commonDB.DB.AddTokenFlag(userID, platformID, tokenString, constant.NormalToken)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", 0, err
|
return "", 0, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user