This commit is contained in:
zhujinyong
2022-01-19 09:08:42 +08:00
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@ $config->cookieLife = time() + 2592000; // Cookie的生存时间。The co
$config->timezone = 'Asia/Shanghai'; // 时区设置。 The time zone setting, for more see http://www.php.net/manual/en/timezones.php.
$config->webRoot = ''; // URL根目录。 The root path of the url.
$config->customSession = false; // 是否开启自定义session的存储路径。Whether custom the session save path.
$config->edition = 'open'; // 设置系统的edition,可选值:open|biz|max。Set edition, optional: open|biz|max.
/* 框架路由相关设置。Routing settings. */
$config->requestType = 'PATH_INFO'; // 请求类型:PATH_INFO|PATHINFO2|GET。 The request type: PATH_INFO|PATH_INFO2|GET.
+2
View File
@@ -677,6 +677,8 @@ class baseRouter
*/
public function setEdition()
{
if(isset($this->config->edition)) return $this->config->edition;
$edition = substr($this->config->version, 0, 3);
if(in_array($edition, array('pro', 'biz', 'max'))) return $this->config->edition = $edition;
$this->config->edition = 'open';