warn('开始计算集成模块收益。'); $this->warn('当前时间: ' . $now); foreach ($modules as $module) { $report = $moduleController->calcModule($module); $income = $report['transactions']['this_month']['drops'] / $report['balance']['rate']; if ($income < 0) { $income = 0; } // 取 2 位 $income = round($income, 2); $text = $module->name . " 收益 {$income} 元 "; $this->info($text); } } }