From 6bb0953ab286f8961c7877e78377bbb3b9926919 Mon Sep 17 00:00:00 2001 From: make Date: Sun, 22 Feb 2026 19:42:47 +0800 Subject: [PATCH] debug --- code/app/task/logic/VideoSiteMapLogic.php | 1 + doc/mongodb.md | 25 +++++++++++++++ doc/优化.md | 37 +++++++++++++++++++++++ 3 files changed, 63 insertions(+) diff --git a/code/app/task/logic/VideoSiteMapLogic.php b/code/app/task/logic/VideoSiteMapLogic.php index 10f504a..ba1b67a 100644 --- a/code/app/task/logic/VideoSiteMapLogic.php +++ b/code/app/task/logic/VideoSiteMapLogic.php @@ -603,6 +603,7 @@ EOF; $arrArgs = [ 'intVId' => $Video->v_id, 'strPinyin' => $Video->v_name_en, + 'strPinYin' => $Video->v_name_en, ]; if ($arrUrlFamily && !empty($arrUrlFamily)) { diff --git a/doc/mongodb.md b/doc/mongodb.md index 4d7eda6..59c1063 100644 --- a/doc/mongodb.md +++ b/doc/mongodb.md @@ -69,10 +69,35 @@ db.video.find({ } }) +db.video.find({ + "v_play_url.douban": { $exists: true } +}).count() // 删除某个资源线路的数据 db.video.updateMany( {}, { $unset: { "v_play_url.douban": "" } } ) +// 删除某个资源线路的数据 30天内 +db.video.find({ + created_at: { + $gte: new Date(Date.now() - 30*24*60*60*1000) + }, + "v_play_url.youzhi": { $exists: true } +}).count() + +db.video.updateMany( + { + created_at: { + $gte: new Date(Date.now() - 30*24*60*60*1000) + }, + "v_play_url.youzhi": { $exists: true } + }, + { + $unset: { "v_play_url.youzhi": "" } + } +) + + + ```` \ No newline at end of file diff --git a/doc/优化.md b/doc/优化.md index c9771c4..e08d417 100644 --- a/doc/优化.md +++ b/doc/优化.md @@ -12,3 +12,40 @@ git restore . git clean -fd + + +