fix26: полный прод-фикс auth/jwt, import-export peer и frontend flow
This commit is contained in:
@@ -2,6 +2,7 @@ package controller
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/sirupsen/logrus"
|
||||
"hy2xs-admin/model/dto"
|
||||
"hy2xs-admin/model/vo"
|
||||
"hy2xs-admin/service"
|
||||
@@ -27,8 +28,7 @@ func Hysteria2Auth(c *gin.Context) {
|
||||
// Обновление времени последнего подключения
|
||||
now := time.Now().UnixMilli()
|
||||
if err = service.UpdatePeerLastConnectionAt(id, now); err != nil {
|
||||
vo.Fail(err.Error(), c)
|
||||
return
|
||||
logrus.WithError(err).Warnf("failed to update peer last_connection_at: peer_id=%d", id)
|
||||
}
|
||||
vo.Hysteria2AuthSuccess(username, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user