* Fix install steps.

This commit is contained in:
朱金勇
2023-04-12 02:03:23 +00:00
parent 0fa6aff4f4
commit 738df10b4c
4 changed files with 6 additions and 3 deletions
+3
View File
@@ -440,6 +440,9 @@ ALTER TABLE `zt_meetingroom`
CHANGE `editedBy` `editedBy` varchar(30) NOT NULL DEFAULT '',
CHANGE `editedDate` `editedDate` datetime NULL;
ALTER TABLE `zt_module`
CHANGE `short` `short` varchar(30) NOT NULL DEFAULT '';
ALTER TABLE `zt_mr`
CHANGE `editedBy` `editedBy` varchar(30) NOT NULL DEFAULT '',
CHANGE `editedDate` `editedDate` datetime NULL;
+1 -1
View File
@@ -1097,7 +1097,7 @@ CREATE TABLE IF NOT EXISTS `zt_module` (
`from` mediumint(8) unsigned NOT NULL default '0',
`owner` varchar(30) NOT NULL,
`collector` text NOT NULL,
`short` varchar(30) NOT NULL,
`short` varchar(30) NOT NULL DEFAULT '',
`deleted` enum('0','1') NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `root` (`root`),
+1 -1
View File
@@ -34,7 +34,7 @@ class cron extends control
*/
public function turnon($confirm = 'no')
{
$turnon = empty($this->config->global->cron) ? 1 : 0;
$turnon = empty($this->config->global->cron) ? '1' : '0';
if(!$turnon and $confirm == 'no') return print(js::confirm($this->lang->cron->confirmTurnon, inlink('turnon', "confirm=yes")));
$this->loadModel('setting')->setItem('system.common.global.cron', $turnon);
return print(js::reload('parent'));
+1 -1
View File
@@ -264,7 +264,7 @@ class install extends control
$this->setting->setItem('system.common.global.flow', $this->post->flow);
$this->setting->setItem('system.common.safe.mode', '1');
$this->setting->setItem('system.common.safe.changeWeak', '1');
$this->setting->setItem('system.common.global.cron', 1);
$this->setting->setItem('system.common.global.cron', '1');
$httpType = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http';
if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) and strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https') $httpType = 'https';