diff --git a/application/back_end/db_models.py b/application/back_end/db_models.py index dfc79772..51af8b1f 100644 --- a/application/back_end/db_models.py +++ b/application/back_end/db_models.py @@ -35,7 +35,7 @@ class KeUser(MyBaseModel): # kindleEar User book_config = JSONField(default=JSONField.dict_default) share_links = JSONField(default=JSONField.dict_default) #evernote/wiz/pocket/instapaper包含子字典,微博/facebook/twitter等仅包含0/1 - covers = JSONField(default=JSONField.dict_default) #保存封面图片数据库ID {'order':,'cover0':,...'cover6':} + covers = JSONField(default=JSONField.dict_default) #保存封面图片数据库ID {'enable':,'order':,'cover0':,...'cover6':} send_mail_service = JSONField(default=JSONField.dict_default) #{'service':,...} custom = JSONField(default=JSONField.dict_default) #留着扩展,避免后续一些小特性还需要升级数据表结构 diff --git a/application/static/base.js b/application/static/base.js index 3ea3e078..2da5e838 100644 --- a/application/static/base.js +++ b/application/static/base.js @@ -1310,6 +1310,7 @@ function SetCoverToDefaultImg(idx) { function startUploadCoversToServer(url) { var totalSize = 0; var fileDatas = new FormData(); + fileDatas.append('enable', $('#enableCover').val()); fileDatas.append('order', $('#coverOrder').val()); for (var idx = 0; idx < 7; idx++) { var coverName = 'cover' + idx; diff --git a/application/templates/adv_uploadcover.html b/application/templates/adv_uploadcover.html index 66fd6cdf..907031dc 100644 --- a/application/templates/adv_uploadcover.html +++ b/application/templates/adv_uploadcover.html @@ -4,21 +4,28 @@ {% endblock -%} {% block advcontent -%} -