修复在线修改定时任务多次执行时事务超时问题

This commit is contained in:
孟帅
2023-02-09 15:42:30 +08:00
parent 7153327b13
commit 7cf1b8ce8e
4 changed files with 17 additions and 7 deletions

View File

@@ -60,6 +60,10 @@ func allow(memberId int64) bool {
// LastActive 更新用户最后活跃
func (s *sHook) LastActive(r *ghttp.Request) {
if r.IsFileRequest() {
return
}
var (
ctx = r.Context()
memberId = contexts.GetUserId(ctx)