fix(release): 正式版本 - 修复 SSRF 与 Quality checks,发布 v1.6.6.1

This commit is contained in:
ddcat666 committed 2026-10-13 12:55:30 +08:00
1 parent ede6cc1e70
commit ea6676f449
21 files changed
+1303 -338

No files matched your search

@@ -24,7 +24,7 @@ func newProjectSettingsTestService(t *testing.T) (*Service, *gorm.DB) {
&model.Shot{}, &model.ShotArtifact{}, &model.VoiceProfile{},
&model.Task{}, &model.TaskLog{}, &model.Result{},
&model.CreationRun{}, &model.CreationSubmission{},
&model.CloudAgentResourceLease{}, &model.Tool{},
&model.CloudAgentResourceLease{}, &model.Tool{}, &model.WorkbenchTool{},
&model.Announcement{}, &model.AnnouncementImageDraft{},
); err != nil {
t.Fatal(err)
+3 -3
View File
@@ -101,9 +101,9 @@ const taskWorkerConcurrency = 3
const taskLogPayloadLimit = 4000
type CreateTaskRequest struct {
creationPrepare *creationTaskPreparation
admission *taskAdmission
workbenchKind string
creationPrepare *creationTaskPreparation
admission *taskAdmission
workbenchKind string
// callerHoldsStorageMu 只给已经持有 Service.storageMu 的内部调用设置。
// 文件容量检查不能再锁一次,否则审批改参数会自锁。
callerHoldsStorageMu bool
+1 -1
View File
@@ -14,7 +14,7 @@ import (
func TestWorkbenchKindFromTaskInputRequiresWorkbenchMetadataAndMatchingTaskType(t *testing.T) {
input := map[string]any{
"mode": "image",
"mode": "image",
"metadata": map[string]any{"source": "workbench", "workbenchKind": "image"},
}
if got := workbenchKindFromTaskInput(input, "canvas_image"); got != model.WorkbenchKindImage {