[更新]修改微信图文摘要处理

This commit is contained in:
Anyon 2017-05-12 17:40:00 +08:00
parent 1ec81ef2df
commit f2bfef24e2

View File

@ -170,6 +170,7 @@
data.local_url = $form.find('[name=local_url]').val(); data.local_url = $form.find('[name=local_url]').val();
data.content = editor.getContent() || ''; data.content = editor.getContent() || '';
data.author = $form.find('[name=author]').val(); data.author = $form.find('[name=author]').val();
data.digest = $form.find('[name=digest]').val();
data.show_cover_pic = $form.find('[name="show_cover_pic"]').get(0).checked ? 1 : 0; data.show_cover_pic = $form.find('[name="show_cover_pic"]').get(0).checked ? 1 : 0;
$form.find('[name=local_url]').trigger('change'); $form.find('[name=local_url]').trigger('change');
$pItem.data('item', data), $form.submit(); $pItem.data('item', data), $form.submit();
@ -192,6 +193,7 @@
data.local_url = data.local_url || '__PUBLIC__/static/plugs/uploader/theme/image.png'; data.local_url = data.local_url || '__PUBLIC__/static/plugs/uploader/theme/image.png';
data.content = data.content || ''; data.content = data.content || '';
data.author = data.author || ''; data.author = data.author || '';
data.digest = data.digest||'';
data.show_cover_pic = data.show_cover_pic || 0; data.show_cover_pic = data.show_cover_pic || 0;
return data; return data;
}; };