设置框架语言为中文

This commit is contained in:
2021-04-02 18:12:45 +08:00
parent 2c35ffec4f
commit bab69fb3a1
6 changed files with 209 additions and 5 deletions
+3 -4
View File
@@ -30,10 +30,9 @@ class License
*/
public static function demoCheck()
{
if ($_ENV['DEMO_VERSION'] == false) {
return;
if ($_ENV['DEMO_VERSION'] === 'true') {
abort_error('演示模式,不允许本操作。');
}
abort_error('演示模式,不允许本操作。');
}
/**
@@ -41,6 +40,6 @@ class License
*/
public static function demoClose()
{
$_ENV['DEMO_VERSION'] = false;
$_ENV['DEMO_VERSION'] = 'false';
}
}