修复新闻工作台换号联动流程
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
15 files changed
+203
-34
No files matched your search
+5
-4
@@ -80,14 +80,15 @@
|
||||
const prepared=await window.DWW11Importer.stagePackage(pack);assertLive(epoch);
|
||||
if(prepared.warnings?.length)throw new Error('文章需要人工处理:'+prepared.warnings.join(';'));
|
||||
await event('importing');assertLive(epoch);status('上传图片并填写文章…');
|
||||
const result=await window.DWW11Importer.importPrepared({automatic:true,signal:aborter.signal});assertLive(epoch);
|
||||
const result=await window.DWW11Importer.importPrepared({automatic:true,verifyImages:false,signal:aborter.signal});assertLive(epoch);
|
||||
if(result?.cancelled)throw new Error('导入已取消');
|
||||
await event('formatting');assertLive(epoch);
|
||||
window.DWW11Formatter.format(job.source);assertLive(epoch);
|
||||
window.DWW11Formatter.format(job.source,{verifyImages:false});assertLive(epoch);
|
||||
const snapshot=editorSnapshot();
|
||||
if(snapshot.title!==job.title)throw new Error('标题校验失败');
|
||||
await window.DWW11Importer.verifyEditorImages(
|
||||
document.querySelector('#e_iframe').contentDocument.body, result.attachmentOrder, aborter.signal);
|
||||
// 按用户要求暂停图片检查;保留原调用以便恢复。
|
||||
// await window.DWW11Importer.verifyEditorImages(
|
||||
// document.querySelector('#e_iframe').contentDocument.body, result.attachmentOrder, aborter.signal);
|
||||
assertLive(epoch);
|
||||
await event('awaiting_user_review',{snapshot});assertLive(epoch);
|
||||
active={...job,state:'awaiting_user_review'};saveLocal({id:job.id});
|
||||
|
||||
Reference in new issue
Block a user