ComposerUpdate

This commit is contained in:
Anyon 2020-05-06 10:15:53 +08:00
parent 8209384a1b
commit dafaf5efd8
6 changed files with 21 additions and 16 deletions

11
composer.lock generated
View File

@ -909,12 +909,12 @@
"source": {
"type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "0dfd6270436823d9a2173532ad21ef0126bcb863"
"reference": "13fabbc1826f03e5ee13dfc74776ccc54da8f429"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/0dfd6270436823d9a2173532ad21ef0126bcb863",
"reference": "0dfd6270436823d9a2173532ad21ef0126bcb863",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/13fabbc1826f03e5ee13dfc74776ccc54da8f429",
"reference": "13fabbc1826f03e5ee13dfc74776ccc54da8f429",
"shasum": "",
"mirrors": [
{
@ -958,7 +958,7 @@
],
"description": "ThinkPHP v6.0 Development Library",
"homepage": "http://framework.thinkadmin.top",
"time": "2020-05-02T11:46:38+00:00"
"time": "2020-05-06T02:04:54+00:00"
},
{
"name": "zoujingli/wechat-developer",
@ -1047,6 +1047,5 @@
"ext-mbstring": "*",
"ext-simplexml": "*"
},
"platform-dev": [],
"plugin-api-version": "1.1.0"
"platform-dev": []
}

View File

@ -21,9 +21,9 @@ require __DIR__ . '/../vendor/autoload.php';
$app = new App();
SystemService::instance()->productMode();
$debug = SystemService::instance()->isDebug();
$response = $app->http->run();
$response = $app->debug($debug)->http->run();
$response->send();

View File

@ -13,9 +13,6 @@ class ComposerAutoloaderInitf41e9df38a61a147f539b835fbd021f0
}
}
/**
* @return \Composer\Autoload\ClassLoader
*/
public static function getLoader()
{
if (null !== self::$loader) {

View File

@ -935,12 +935,12 @@
"source": {
"type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "0dfd6270436823d9a2173532ad21ef0126bcb863"
"reference": "13fabbc1826f03e5ee13dfc74776ccc54da8f429"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/0dfd6270436823d9a2173532ad21ef0126bcb863",
"reference": "0dfd6270436823d9a2173532ad21ef0126bcb863",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/13fabbc1826f03e5ee13dfc74776ccc54da8f429",
"reference": "13fabbc1826f03e5ee13dfc74776ccc54da8f429",
"shasum": "",
"mirrors": [
{
@ -956,7 +956,7 @@
"ext-json": "*",
"topthink/framework": "^6.0"
},
"time": "2020-05-02T11:46:38+00:00",
"time": "2020-05-06T02:04:54+00:00",
"type": "library",
"extra": {
"think": {

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?php
// This file is automatically generated at:2020-05-02 19:51:24
// This file is automatically generated at:2020-05-06 10:07:22
declare (strict_types = 1);
return array (
0 => 'think\\app\\Service',

View File

@ -296,4 +296,13 @@ class SystemService extends Service
return $this->app->debug($data['app_run'] !== 'product')->isDebug();
}
/**
* 判断实时运行模式
* @return boolean
*/
public function isDebug()
{
return $this->getRuntime('app_run') !== 'product';
}
}