diff --git a/src/Services/Cron.php b/src/Services/Cron.php index f3c01681..8c92f8c5 100755 --- a/src/Services/Cron.php +++ b/src/Services/Cron.php @@ -125,9 +125,9 @@ final class Cron $iMoneyCount += $row["price"]; $oUser = $oUserModel->where("id", $row["id"])->first(); - - if (isset($oUser['from'])) { - $sFrom = $oUser['from']; + + if (isset($oUser->from)) { + $sFrom = $oUser->from; } else { $sFrom = "无"; } @@ -138,7 +138,6 @@ final class Cron } else { $iPayCountOld ++; $iMoneyCountOld += $row["price"]; -// var_dump($row); } $aUserMix[$sFrom]['pay_count'] = $iPayCount;