diff --git a/internal/helpers/oa_attachment_test.go b/internal/helpers/oa_attachment_test.go index 52d6a38c..66f1d83b 100644 --- a/internal/helpers/oa_attachment_test.go +++ b/internal/helpers/oa_attachment_test.go @@ -686,11 +686,9 @@ func TestCrossPlatformCoverageOAAttachmentUploadMD5Failure(t *testing.T) { filePath, _ := writeOAAttachmentTempFile(t, "test.bin", "hello") put := mockOAAttachmentPut(t) - original := computeFileMD5 - computeFileMD5 = func(string) (string, error) { + testseam.Swap(t, &computeFileMD5, func(string) (string, error) { return "", errors.New("permission denied") - } - t.Cleanup(func() { computeFileMD5 = original }) + }) caller := &scriptedToolCaller{format: "json"} _, err := executeOAAttachmentCommandCapturingOutput(t, caller, diff --git a/skills/mono/references/products/oa/oa-form-components.md b/skills/mono/references/products/oa/oa-form-components.md index b54408e3..7da45277 100644 --- a/skills/mono/references/products/oa/oa-form-components.md +++ b/skills/mono/references/products/oa/oa-form-components.md @@ -328,7 +328,6 @@ | 流水号 | `SeqNumberField` | 由系统自动生成 | | OCR 文本识别 | `OcrTextField` | 需要客户端 OCR 交互 | | OCR 身份证识别 | `OcrIdCardField` | 需要客户端 OCR 交互 | -| 附件控件 | `DDAttachment` | 已支持:value 需要 spaceId、fileName、fileSize、fileType、fileId,先用 `dws oa approval attachment upload --file ` 上传获取再组装提交 | > **部分支持的控件:** `DDPhotoField`(图片控件)**支持通过 URL 直接提交**,但不支持本地文件上传(CLI 未封装钉盘 CDN 上传流程)。若用户只有本地文件,需告知在钉钉客户端补充。详见本文 [DDPhotoField](#ddphotofield图片控件) 章节。 diff --git a/skills/multi/dingtalk-misc/references/oa/oa-form-components.md b/skills/multi/dingtalk-misc/references/oa/oa-form-components.md index 2b319dcc..ab985fd9 100644 --- a/skills/multi/dingtalk-misc/references/oa/oa-form-components.md +++ b/skills/multi/dingtalk-misc/references/oa/oa-form-components.md @@ -328,7 +328,6 @@ | 流水号 | `SeqNumberField` | 由系统自动生成 | | OCR 文本识别 | `OcrTextField` | 需要客户端 OCR 交互 | | OCR 身份证识别 | `OcrIdCardField` | 需要客户端 OCR 交互 | -| 附件控件 | `DDAttachment` | 已支持:value 需要 spaceId、fileName、fileSize、fileType、fileId,先用 `dws oa approval attachment upload --file ` 上传获取再组装提交 | > **部分支持的控件:** `DDPhotoField`(图片控件)**支持通过 URL 直接提交**,但不支持本地文件上传(CLI 未封装钉盘 CDN 上传流程)。若用户只有本地文件,需告知在钉钉客户端补充。详见本文 [DDPhotoField](#ddphotofield图片控件) 章节。