From 9c2340513b5741747794fc6126bbdbc7ec629c44 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Mon, 31 Mar 2025 22:10:25 +0800 Subject: [PATCH] no message --- src/Services/Tg/ReportUser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Services/Tg/ReportUser.php b/src/Services/Tg/ReportUser.php index 3ffed2fd..2eb22c97 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 && $iTotalFromCount) { + if (!empty($iTotalRegCount) && !empty($iTotalFromCount)) { $iRegFromRate = (int) (($iTotalRegCount / $iTotalFromCount) * 100); } - if ($iTotalPayCount && $iTotalRegCount) { + if (!empty($iTotalPayCount) && !empty($iTotalRegCount)) { $iPayRagRate = (int) (($iTotalPayCount / $iTotalRegCount) * 100); } @@ -84,7 +84,7 @@ final class ReportUser $sStr .= "*总支付:".$iTotalPayCount."\n"; $sStr .= "*总金额:".$iTotalMoneyCount."\n"; $sStr .= "*访问注册比".$iRegFromRate."%\n"; - $sStr .= "*注册付款比".$iRegFromRate."%\n"; + $sStr .= "*注册付款比".$iPayRagRate."%\n"; $iFromRate = 0; $iRegRate = 0;