save code

This commit is contained in:
xsl
2025-09-09 11:36:17 +08:00
parent 09a57cdac3
commit af30bcc97c
3 changed files with 64 additions and 34 deletions
+7 -1
View File
@@ -103,6 +103,10 @@
<label>
<input type="checkbox" id="tuodiCheckbox"> 设置 tuodi(拖地)
</label>
<label>
<input type="checkbox" id="kuziCheckbox"> 设置 kuzi(裤子)
</label>
</div>
</div>
@@ -149,6 +153,7 @@
const clothFile = document.getElementById('clothInput').files[0];
const no2 = document.getElementById("no2Checkbox").checked;
const tuodi = document.getElementById("tuodiCheckbox").checked;
const kuzi = document.getElementById("kuziCheckbox").checked;
if (!humanFile || !clothFile) {
alert('请同时选择人体图片和衣服图片!');
@@ -170,7 +175,8 @@
cloth_img: clothDataURL, // 包含完整前缀的Base64
output_format: "url",
no2: no2,
tuodi:tuodi
tuodi:tuodi,
kuzi:kuzi
};
console.log("准备发送的数据:", data); // 调试用