insatll do not use do_log func

This commit is contained in:
xiaomlove
2021-01-30 14:58:58 +08:00
parent f249d57a02
commit e8f58c761a
+3 -3
View File
@@ -42,18 +42,18 @@ class Install
for ($i = 1; $i < $step; $i++) { for ($i = 1; $i < $step; $i++) {
$progressKey = $this->getProgressKey($i); $progressKey = $this->getProgressKey($i);
if (!isset($_SESSION[$progressKey])) { if (!isset($_SESSION[$progressKey])) {
do_log("check step: $i, session doesn't have, session: " . json_encode($_SESSION)); $this->doLog("check step: $i, session doesn't have, session: " . json_encode($_SESSION));
return false; return false;
} }
} }
do_log("check step: $step, can access, session: " . json_encode($_SESSION)); $this->doLog("check step: $step, can access, session: " . json_encode($_SESSION));
return true; return true;
} }
public function doneStep($step) public function doneStep($step)
{ {
$progressKey = $this->getProgressKey($step); $progressKey = $this->getProgressKey($step);
do_log("doneStep: $step, $progressKey = 1"); $this->doLog("doneStep: $step, $progressKey = 1");
$_SESSION[$progressKey] = 1; $_SESSION[$progressKey] = 1;
} }