admin add confirm user + show original media info when not meet the standard

This commit is contained in:
xiaomlove
2022-07-05 03:02:33 +08:00
parent ea94c0f738
commit 147cf6db71
6 changed files with 24 additions and 3 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ class Install
{
protected $currentStep;
protected $minimumPhpVersion = '8.0.2';
protected $minimumPhpVersion = '8.0.3';
protected $progressKeyPrefix = '__step';
@@ -71,7 +71,7 @@ class Install
for ($i = 1; $i < $step; $i++) {
$progressKey = $this->getProgressKey($i);
if (!isset($_SESSION[$progressKey])) {
$this->doLog("check step: $i, session doesn't have" );
$this->doLog("check step: $i, session doesn't have: " . json_encode($_SESSION));
return false;
}
}
+2 -1
View File
@@ -151,7 +151,8 @@ class TechnicalInformation
$subtitles = $this->getSubtitles();
// dd($videos, $audios, $subtitles);
if (empty($videos) && empty($audios) && empty($subtitles)) {
return '';
// return '';
return sprintf('<div style="padding: 0 0.5rem"><pre>%s</pre></div>', $this->mediaInfo);
}
$result = '<table style="border: none;width: 100%"><tbody><tr>';