feat:完善项目

This commit is contained in:
henry
2022-01-17 09:57:57 +08:00
parent 6d075dab4f
commit b50fdb0d44
30 changed files with 70 additions and 84 deletions

View File

@ -37,7 +37,8 @@ func (this *AuthToken) Auth(key string, session logic.ISession) error {
if err := json.Unmarshal([]byte(cache), session); err != nil {
return err
}
if !config.SettingInfo.MultipleLogin && session.GetToken() != this.Token {
if (config.SystemConfig[config.SysMultipleLogin] == "0" || config.SystemConfig[config.SysMultipleLogin] == "") &&
session.GetToken() != this.Token {
return errors.New("登陆错误,已在其他地方登录!")
}
return nil