mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-10-21 15:52:08 +08:00
ComposerUpdate
This commit is contained in:
parent
18f9e70755
commit
d4f6b04ebb
8
composer.lock
generated
8
composer.lock
generated
@ -783,12 +783,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||||
"reference": "4a616d7c4852a46b4d4038a6715c9d62303e5d99"
|
"reference": "8d5bb74a4956debf5a37fa1e04d81723910cb889"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/4a616d7c4852a46b4d4038a6715c9d62303e5d99",
|
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/8d5bb74a4956debf5a37fa1e04d81723910cb889",
|
||||||
"reference": "4a616d7c4852a46b4d4038a6715c9d62303e5d99",
|
"reference": "8d5bb74a4956debf5a37fa1e04d81723910cb889",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -832,7 +832,7 @@
|
|||||||
],
|
],
|
||||||
"description": "ThinkPHP v6.0 Development Library",
|
"description": "ThinkPHP v6.0 Development Library",
|
||||||
"homepage": "http://framework.thinkadmin.top",
|
"homepage": "http://framework.thinkadmin.top",
|
||||||
"time": "2019-11-28T08:04:45+00:00"
|
"time": "2019-11-28T09:07:59+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [],
|
"packages-dev": [],
|
||||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -805,12 +805,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||||
"reference": "4a616d7c4852a46b4d4038a6715c9d62303e5d99"
|
"reference": "8d5bb74a4956debf5a37fa1e04d81723910cb889"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/4a616d7c4852a46b4d4038a6715c9d62303e5d99",
|
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/8d5bb74a4956debf5a37fa1e04d81723910cb889",
|
||||||
"reference": "4a616d7c4852a46b4d4038a6715c9d62303e5d99",
|
"reference": "8d5bb74a4956debf5a37fa1e04d81723910cb889",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -826,7 +826,7 @@
|
|||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"topthink/framework": "^6.0"
|
"topthink/framework": "^6.0"
|
||||||
},
|
},
|
||||||
"time": "2019-11-28T08:04:45+00:00",
|
"time": "2019-11-28T09:07:59+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"think": {
|
"think": {
|
||||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
// This file is automatically generated at:2019-11-28 16:10:35
|
// This file is automatically generated at:2019-11-28 17:15:19
|
||||||
declare (strict_types = 1);
|
declare (strict_types = 1);
|
||||||
return array (
|
return array (
|
||||||
0 => 'think\\app\\Service',
|
0 => 'think\\app\\Service',
|
||||||
|
@ -139,13 +139,17 @@ class SystemService extends Service
|
|||||||
/**
|
/**
|
||||||
* 读取数据内容
|
* 读取数据内容
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param string $default
|
* @param mixed $default
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getData($name, $default = null)
|
public function getData($name, $default = [])
|
||||||
{
|
{
|
||||||
$value = $this->app->db->name('SystemData')->where(['name' => $name])->value('value', null);
|
try {
|
||||||
return is_null($value) ? $default : unserialize($value);
|
$value = $this->app->db->name('SystemData')->where(['name' => $name])->value('value', null);
|
||||||
|
return is_null($value) ? $default : unserialize($value);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
return $default;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user