From 3920116f3587adf9f8600ea15638cb442fa30221 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Mon, 31 Mar 2025 22:05:35 +0800 Subject: [PATCH] no message --- src/Services/Tg/ReportUser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/Tg/ReportUser.php b/src/Services/Tg/ReportUser.php index 6a50d39f..3ffed2fd 100755 --- a/src/Services/Tg/ReportUser.php +++ b/src/Services/Tg/ReportUser.php @@ -71,10 +71,10 @@ final class ReportUser $iRegFromRate = 0; $iPayRagRate = 0; - if ($iTotalRegCount) { + if ($iTotalRegCount && $iTotalFromCount) { $iRegFromRate = (int) (($iTotalRegCount / $iTotalFromCount) * 100); } - if ($iTotalPayCount) { + if ($iTotalPayCount && $iTotalRegCount) { $iPayRagRate = (int) (($iTotalPayCount / $iTotalRegCount) * 100); }