update
This commit is contained in:
@ -231,7 +231,7 @@ class KeywordsController extends AbstractController
|
|||||||
$exportList["百度PC端_$percent%"] = $baiduPCRes;
|
$exportList["百度PC端_$percent%"] = $baiduPCRes;
|
||||||
|
|
||||||
// 百度WAP非负率
|
// 百度WAP非负率
|
||||||
$total = AppKeywordsMonitorTask::query()->where('is_delete', 0)->where('platform', 2)->sum('length');
|
$total = AppKeywordsMonitorTask::query()->where('is_delete', 0)->where('platform', 2)->sum('length') ?: 1;
|
||||||
$percent = round(($total - count($baiduWAPRes)) / $total, 2) * 100;
|
$percent = round(($total - count($baiduWAPRes)) / $total, 2) * 100;
|
||||||
$exportList["百度WAP端_$percent%"] = $baiduWAPRes;
|
$exportList["百度WAP端_$percent%"] = $baiduWAPRes;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user