|
|
@@ -5,6 +5,8 @@ declare(strict_types=1);
|
|
|
namespace SixShop\System\Job;
|
|
|
|
|
|
use Composer\InstalledVersions;
|
|
|
+use SixShop\Auth\Enum\UserTypeEnum;
|
|
|
+use SixShop\Auth\Hook\AuthHook;
|
|
|
use SixShop\Core\Attribute\Cron;
|
|
|
use SixShop\Core\Job\BaseJob;
|
|
|
use SixShop\Core\Service\CoreService;
|
|
|
@@ -37,6 +39,7 @@ class SystemStatusJob extends BaseJob
|
|
|
private readonly Env $env,
|
|
|
private readonly CronJobLogEntity $cronJobLogEntity,
|
|
|
private readonly QueueJobLogEntity $queueJobLogEntity,
|
|
|
+ private readonly AuthHook $authHook,
|
|
|
) {
|
|
|
$this->httpClient = HttpClient::create([
|
|
|
'base_uri' => self::PACKAGIST_URL,
|
|
|
@@ -97,6 +100,8 @@ class SystemStatusJob extends BaseJob
|
|
|
}
|
|
|
$data['crontab_list'] = $this->cronJobLogEntity->getLatestPerJob();
|
|
|
$data['queue_job_list'] = $this->queueJobLogEntity->getLatestPerJob();
|
|
|
+ $data['online_user_count'] = $this->authHook->getOnlineCount(UserTypeEnum::USER);
|
|
|
+ $data['online_admin_count'] = $this->authHook->getOnlineCount(UserTypeEnum::ADMIN);
|
|
|
$this->runtimeLog('deploy', $data);
|
|
|
$this->runtimeLog('admin_deploy', $data);
|
|
|
// 扩展状态数据
|