V3.1.8
1. 添加软件高清倍率设置,实现自定义高清倍率(支持两倍、三倍和四倍,默认是两倍) 2. (聚合推文)新增导出草稿。可以依赖做好的草稿文件,只替换图片文件 3. (聚合推文)新增批量生成草稿 4. (聚合推文)修改小说批次任务进行详细界面操作为双击
This commit is contained in:
@@ -12,6 +12,7 @@ export class BookModel extends Realm.Object<BookModel> {
|
||||
oldVideoPath: string | null
|
||||
srtPath: string | null
|
||||
audioPath: string | null
|
||||
draftDepend?: string // 草稿依赖
|
||||
draftSrtStyle: string | null // 草稿字幕样式
|
||||
backgroundMusic: string | null // 背景音乐ID
|
||||
friendlyReminder: string | null // 友情提示
|
||||
@@ -38,6 +39,7 @@ export class BookModel extends Realm.Object<BookModel> {
|
||||
oldVideoPath: 'string?',
|
||||
srtPath: 'string?',
|
||||
audioPath: 'string?',
|
||||
draftDepend: "string?",
|
||||
draftSrtStyle: 'string?',
|
||||
backgroundMusic: 'string?',
|
||||
friendlyReminder: 'string?',
|
||||
|
||||
@@ -43,6 +43,7 @@ export class BookTaskModel extends Realm.Object<BookTaskModel> {
|
||||
name: string
|
||||
generateVideoPath: string | null
|
||||
srtPath: string | null
|
||||
draftDepend?: string // 草稿依赖
|
||||
audioPath: string | null
|
||||
draftSrtStyle: string | null // 草稿字幕样式
|
||||
backgroundMusic: string | null // 背景音乐ID
|
||||
@@ -72,6 +73,7 @@ export class BookTaskModel extends Realm.Object<BookTaskModel> {
|
||||
name: 'string',
|
||||
generateVideoPath: 'string?',
|
||||
srtPath: 'string?',
|
||||
draftDepend: "string?",
|
||||
audioPath: 'string?',
|
||||
draftSrtStyle: 'string?',
|
||||
backgroundMusic: 'string?',
|
||||
|
||||
@@ -176,6 +176,27 @@ const migration = (oldRealm: Realm, newRealm: Realm) => {
|
||||
newBookTask[i].messageName = ''
|
||||
}
|
||||
}
|
||||
// if (oldRealm.schemaVersion < 25) {
|
||||
// const oldBookTask = oldRealm.objects('BookTaskDetail')
|
||||
// const newBookTask = newRealm.objects('BookTaskDetail')
|
||||
// for (let i = 0; i < oldBookTask.length; i++) {
|
||||
// newBookTask[i].draftDepend = undefined
|
||||
// }
|
||||
// }
|
||||
if (oldRealm.schemaVersion < 26) {
|
||||
const oldBookTask = oldRealm.objects('BookTask')
|
||||
const newBookTask = newRealm.objects('BookTask')
|
||||
for (let i = 0; i < oldBookTask.length; i++) {
|
||||
newBookTask[i].draftDepend = ''
|
||||
}
|
||||
}
|
||||
if (oldRealm.schemaVersion < 27) {
|
||||
const oldBookTask = oldRealm.objects('Book')
|
||||
const newBookTask = newRealm.objects('Book')
|
||||
for (let i = 0; i < oldBookTask.length; i++) {
|
||||
newBookTask[i].draftDepend = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class BaseRealmService extends BaseService {
|
||||
@@ -217,7 +238,7 @@ export class BaseRealmService extends BaseService {
|
||||
BookTaskDetailModel
|
||||
],
|
||||
path: this.dbpath,
|
||||
schemaVersion: 24,
|
||||
schemaVersion: 27,
|
||||
migration: migration
|
||||
}
|
||||
this.realm = await Realm.open(config)
|
||||
|
||||
Reference in New Issue
Block a user