Skip to content

Commit

Permalink
修复热词功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Eswink committed Nov 19, 2024
1 parent edd6931 commit 48b7d9d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
12 changes: 6 additions & 6 deletions assets/js/admin-hotspot-choices.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
let common_loaded = false,
hot_loaded = false,
common_se_pv = 1,
hot_se_pv = 2
hot_se_pv = 1
common_id = 'common-words'
hot_id = 'hotwords'

Expand Down Expand Up @@ -152,14 +152,14 @@
'<li class="page-item"><a class="page-link" href="javascript:void(0)">...</a></li>'
}

for (i of pages) {
content += `<li class="page-item ${
i == page_no ? 'active' : ''
}"><a class="page-link" href="javascript:void(0)" data-page=${i} >${i}</a></li>`
for (let i of pages) {
content += `<li class="page-item ${i == page_no ? 'active' : ''}">
<a class="page-link" href="javascript:void(0);" data-page=${i} onclick="access_baidu_hotspot(${i}, 500, 1, 'hotwords')">${i}</a>
</li>`;
}
content += `<li class="page-item"><a class="page-link" href="javascript:void(0)" data-page=${page_no}>...</a></li>`

content += `<li class="page-item"><a class="page-link" href="javascript:void(0)"data-page=${page_end} >${page_end}</a></li>`
content += `<li class="page-item"><a class="page-link" href="javascript:void(0)" data-page=${page_end} >${page_end}</a></li>`

return content
}
Expand Down
3 changes: 2 additions & 1 deletion hotspot.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: HotSpot AI 热点创作
* Description: 基于AI技术的WordPress插件,旨在帮助您分析获取全网热词并帮助构思和写作,提高您网站的整体权重
* Author: Eswlnk
* Version: 1.3.8
* Version: 1.3.9
* Author URI: https://blog.eswlnk.com/
*/

Expand All @@ -23,6 +23,7 @@
define('HOTSPOT_AI_SOURCE', plugin_basename(__FILE__));
}


// Include the other PHP files for different functionalities
require_once plugin_dir_path(__FILE__) . 'inc/hotspot-admin-menu.php'; //注册菜单

Expand Down
8 changes: 6 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
- Contributors: ersanwu
- Tags: hotspot,writer,ai
- Requires at least: 5.8
- Tested up to: 6.4.1
- Tested up to: 6.7
- Requires PHP: 7.4
- Stable tag: 1.3.8
- Stable tag: 1.3.9
- License: GNU General Public License v2.0 or later
- License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -48,6 +48,10 @@

## Changelog 更新日志

1.3.9

> 1. 修复热词功能
1.3.8

> 1. 修复登录/注册验证码API接口
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Tags: hotspot,writer,ai

Requires at least: 5.8

Tested up to: 6.4.1
Tested up to: 6.7

Requires PHP: 7.4

Stable tag: 1.3.8
Stable tag: 1.3.9

License: GNU General Public License v2.0 or later

Expand Down Expand Up @@ -56,6 +56,10 @@ Hotspot使用机器学习算法来分析全网热词,自动生成观点、标

== Changelog ==

= 1.3.9 =

1. 修复热词功能

= 1.3.8 =

1. 修复验证码API接口
Expand Down

0 comments on commit 48b7d9d

Please sign in to comment.