fix: 手动刷新提示结果并重置倒计时
This commit is contained in:
@@ -289,6 +289,11 @@ func (a *App) page(w http.ResponseWriter, r *http.Request) {
|
||||
func (a *App) manualRefresh(w http.ResponseWriter, r *http.Request) {
|
||||
if a.isLoggedIn() {
|
||||
a.refresh()
|
||||
if a.isLoggedIn() {
|
||||
a.stampNext()
|
||||
a.wakeLoop()
|
||||
a.save()
|
||||
}
|
||||
}
|
||||
writeJSON(w, http.StatusOK, a.view())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user