Patrick Peng Sun 9 лет назад
Родитель
Сommit
d1b3380b36
1 измененных файлов: 6 добавлений и 2 удалений
  1. +6
    -2
      chatSession.go

+ 6
- 2
chatSession.go Просмотреть файл

log.Printf("Session Content [path=%s] not correct: ", path) log.Printf("Session Content [path=%s] not correct: ", path)
result = createEmptySession(openID, 3600) result = createEmptySession(openID, 3600)
} else { //load procedure state if any } else { //load procedure state if any
procedure := result.Procedure
result.state, err = getCurrentState(openID, procedure)
if !isExpired(result.Expire) {
procedure := result.Procedure
result.state, err = getCurrentState(openID, procedure)
} else {
result = createEmptySession(openID, 3600)
}
} }
} }
} }

Загрузка…
Отмена
Сохранить