@@ -14,7 +14,17 @@ export type CustomWorldCoverPresentation = {
|
||||
sourceType: CustomWorldCoverProfile['sourceType'];
|
||||
};
|
||||
|
||||
function resolveOpeningSceneFirstActImageSrc(profile: CustomWorldProfile) {
|
||||
return profile.sceneChapterBlueprints?.[0]?.acts?.[0]?.backgroundImageSrc?.trim() || null;
|
||||
}
|
||||
|
||||
function resolveOpeningSceneImageSrc(profile: CustomWorldProfile) {
|
||||
// 默认封面优先取开局场景第一幕图,避免草稿页与作品库继续沿用旧的营地兜底策略。
|
||||
const firstActImageSrc = resolveOpeningSceneFirstActImageSrc(profile);
|
||||
if (firstActImageSrc) {
|
||||
return firstActImageSrc;
|
||||
}
|
||||
|
||||
const campImageSrc = profile.camp?.imageSrc?.trim() || '';
|
||||
if (campImageSrc) {
|
||||
return campImageSrc;
|
||||
|
||||
Reference in New Issue
Block a user