This commit is contained in:
2026-09-15 23:04:38 +08:00
parent 6be3f083cc
commit 592fa9be64
21 changed files with 1323 additions and 77 deletions
@@ -1,5 +1,6 @@
import { request } from '../../utils/request'
import { OutfitItem, ClothesItem, PagedResult } from '../../types/models'
import { OutfitSource } from '../../utils/config'
import { normalizePaged, hasMorePaged } from '../../utils/paged'
import { navScroll } from '../../utils/nav'
import { logger } from '../../utils/logger'
@@ -218,6 +219,9 @@ Page({
scene: this.data.scene,
items: this.data.selectedUuids.map((u) => ({ clothes_uuid: u })),
}
// 创建态:后端 OutfitCreateRequest.Source 为 oneof=1 2 必填校验(漏传会报校验失败)
// 编辑态:OutfitUpdateByUUIDRequest 没有 source 字段,不能传,避免把 AI 来源改掉
if (!this.data.isEdit) body.source = OutfitSource.USER
// 编辑态后端 OutfitUpdateByUUIDRequest.OutfitUUID 为必填(binding required),请求体需携带
if (this.data.isEdit) body.outfit_uuid = this.data.uuid