Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaoai-video
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚珂
yaoai-video
Commits
3aa33f49
Commit
3aa33f49
authored
Apr 27, 2026
by
yaoke.yk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成场景图片失败修复api
parent
7d9fd30b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
AssetGenPipelineServiceImpl.java
...ai/pipeline/service/impl/AssetGenPipelineServiceImpl.java
+27
-0
No files found.
yaoai-comic-studio/yaoai-pipeline/src/main/java/com/yaoai/pipeline/service/impl/AssetGenPipelineServiceImpl.java
View file @
3aa33f49
...
...
@@ -361,6 +361,12 @@ public class AssetGenPipelineServiceImpl implements AssetGenPipelineService {
@Override
public
Scene
saveScene
(
Scene
scene
)
{
if
(
scene
.
getId
()
!=
null
)
{
Scene
existing
=
sceneMapper
.
selectById
(
scene
.
getId
());
if
(
existing
!=
null
&&
shouldRefreshSceneImagePrompt
(
scene
,
existing
))
{
scene
.
setImagePrompt
(
buildSceneImagePromptFallback
(
scene
));
}
}
if
(
scene
.
getImagePrompt
()
==
null
||
scene
.
getImagePrompt
().
isBlank
())
{
scene
.
setImagePrompt
(
buildSceneImagePromptFallback
(
scene
));
}
...
...
@@ -395,6 +401,27 @@ public class AssetGenPipelineServiceImpl implements AssetGenPipelineService {
return
prompt
.
toString
();
}
private
boolean
shouldRefreshSceneImagePrompt
(
Scene
incoming
,
Scene
existing
)
{
if
(
incoming
==
null
||
existing
==
null
)
{
return
false
;
}
String
incomingPrompt
=
normalizeSceneField
(
incoming
.
getImagePrompt
());
String
existingPrompt
=
normalizeSceneField
(
existing
.
getImagePrompt
());
if
(
incomingPrompt
.
isBlank
())
{
return
true
;
}
if
(!
incomingPrompt
.
equals
(
existingPrompt
))
{
return
false
;
}
return
!
normalizeSceneField
(
incoming
.
getName
()).
equals
(
normalizeSceneField
(
existing
.
getName
()))
||
!
normalizeSceneField
(
incoming
.
getDescription
()).
equals
(
normalizeSceneField
(
existing
.
getDescription
()))
||
!
normalizeSceneField
(
incoming
.
getSceneType
()).
equals
(
normalizeSceneField
(
existing
.
getSceneType
()));
}
private
String
normalizeSceneField
(
String
value
)
{
return
value
==
null
?
""
:
value
.
trim
();
}
@Override
public
void
deleteCharacter
(
Long
id
,
Long
tenantId
)
{
Character
character
=
characterMapper
.
selectById
(
id
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment