Skip to content

Commit

Permalink
fix:fixed subject empty error
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfa committed Dec 24, 2024
1 parent 691c6fb commit c033758
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

数据本地化,解决豆瓣接口失效及图片防盗链。

last version `4.4.3`
last version `4.4.4`

## 快速配置

Expand Down
4 changes: 4 additions & 0 deletions src/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public function db_sync_data()
$confition = false;
} else {
foreach ($data as $interest) {
if (!isset($interest['subject'])) {
continue;
}

$movie = $wpdb->get_row("SELECT * FROM $wpdb->douban_movies WHERE `type` = '{$type}' AND douban_id = {$interest['subject']['id']}");
if (!$movie) {
$wpdb->insert(
Expand Down
4 changes: 2 additions & 2 deletions wp-douban.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Plugin Name: WP-Douban
Plugin URI: https://fatesinger.com/101005
Description: 🎬 📖 🎵 🎮 manage your movie / book / music / game records
Version: 4.4.3
Version: 4.4.4
Author: Bigfa
Author URI: https://fatesinger.com
*/

define('WPD_VERSION', '4.4.3');
define('WPD_VERSION', '4.4.4');
define('WPD_URL', plugins_url('', __FILE__));
define('WPD_PATH', dirname(__FILE__));
define('WPD_ADMIN_URL', admin_url());
Expand Down

0 comments on commit c033758

Please sign in to comment.