This commit is contained in:
make
2025-04-07 10:19:45 +08:00
parent ddbf53bd2b
commit 6017bff14e
2 changed files with 12 additions and 11 deletions

View File

@@ -202,17 +202,17 @@
<script> <script>
const strNovelId = `{$arrNovel.n_id}`; const strNovelId = `{$arrNovel.n_id}`;
const arrNovel = { const arrNovel = {
'n_id' : `{$arrNovel['n_id']}`, 'n_id' : `{$arrNovel['n_id']}`,
'og_novel_pin_yin' : `{$arrNovel['og_novel_pin_yin']}`, 'og_novel_pin_yin' : `{$arrNovel['og_novel_pin_yin']}`,
'n_cover_path' : `{$arrNovel['n_cover_path']}`, 'n_cover_path' : `{$arrNovel['n_cover_path']}`,
'og_novel_book_name' : `{$arrNovel['og_novel_book_name']}`, 'og_novel_book_name' : `{$arrNovel['og_novel_book_name']}`,
'og_novel_author' : `{$arrNovel['og_novel_author']}`, 'og_novel_author' : `{$arrNovel['og_novel_author']}`,
'og_novel_status' : `{$arrNovel['og_novel_status']}`, 'og_novel_status' : `{$arrNovel['og_novel_status']}`,
'og_novel_update_time' : `{$arrNovel['og_novel_update_time']}`, 'og_novel_update_time' : `{$arrNovel['og_novel_update_time']}`,
'c_sort_num' : 1, 'c_sort_num' : 1,
'c_name' : `第一章`, 'c_name' : `第一章`,
}; };
</script> </script>
{/block} {/block}

View File

@@ -380,6 +380,7 @@ function displayHistory() {
// 方法1使用 fetch API // 方法1使用 fetch API
async function reportStats(data) { async function reportStats(data) {
console.log(strPushApi)
try { try {
const response = await fetch(strPushApi+'/publish', { const response = await fetch(strPushApi+'/publish', {
method: 'POST', method: 'POST',