feat: AI创作流程优化,添加userId参数和轮询状态
This commit is contained in:
@@ -345,7 +345,12 @@ export default class StoryManager {
|
||||
*/
|
||||
async createStory(params) {
|
||||
try {
|
||||
if (!params.userId) {
|
||||
console.error('AI创作失败: 缺少userId');
|
||||
return null;
|
||||
}
|
||||
const result = await post('/stories/ai-create', {
|
||||
userId: params.userId,
|
||||
genre: params.genre,
|
||||
keywords: params.keywords,
|
||||
protagonist: params.protagonist,
|
||||
|
||||
Reference in New Issue
Block a user