refactor(core): 任务与模型协议治理 - 拆分服务职责并禁止已发起任务取消
This commit is contained in:
1 parent
7418ddfa9c
commit
633560a5d8
91 files changed
+6380
-4247
No files matched your search
@@ -6,6 +6,7 @@ import (
|
||||
"encoding/csv"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"log"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -1106,5 +1107,7 @@ func firstInt64Value(values map[string]any, keys ...string) (int64, bool) {
|
||||
}
|
||||
|
||||
func (s *Service) recordActivity(userID string, event string, count int) {
|
||||
_ = s.repo.RecordUserActivity(userID, event, count, time.Now())
|
||||
if err := s.repo.RecordUserActivity(userID, event, count, time.Now()); err != nil {
|
||||
log.Printf("record user activity failed: event=%s count=%d error=%v", event, count, err)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user