From 52d8e71847b60af94827781580d2557ac75d649a Mon Sep 17 00:00:00 2001 From: toom1996 Date: Mon, 23 Jun 2025 14:04:31 +0800 Subject: [PATCH] update --- app/Controller/admin/api/KeywordsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controller/admin/api/KeywordsController.php b/app/Controller/admin/api/KeywordsController.php index 18ed212..289d109 100644 --- a/app/Controller/admin/api/KeywordsController.php +++ b/app/Controller/admin/api/KeywordsController.php @@ -227,12 +227,12 @@ class KeywordsController extends AbstractController $exportList = []; // 百度PC非负率 $total = AppKeywordsMonitorTask::query()->where('is_delete', 0)->where('platform', 1)->sum('length') ?: 1; - $percent = (100 - round(count($baiduPCRes) / $total, 2)) * 100; + $percent = round(count($baiduPCRes) / $total, 2) * 100; $exportList["百度PC端_$percent%"] = $baiduPCRes; // 百度WAP非负率 $total = AppKeywordsMonitorTask::query()->where('is_delete', 0)->where('platform', 2)->sum('length') ?: 1; - $percent = (100 - round(count($baiduWAPRes) / $total, 2)) * 100; + $percent = round(count($baiduWAPRes) / $total, 2) * 100; $exportList["百度WAP端_$percent%"] = $baiduWAPRes; return ExcelHelper::exportData($this->response, list: $exportList, header: [