mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
ComposerUpdate
This commit is contained in:
parent
4d6860663b
commit
7dd1b66583
8
composer.lock
generated
8
composer.lock
generated
@ -783,12 +783,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "8d5bb74a4956debf5a37fa1e04d81723910cb889"
|
||||
"reference": "ba4fe10a27cff9fb5bbd2a4673e0c65fb3040e62"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/8d5bb74a4956debf5a37fa1e04d81723910cb889",
|
||||
"reference": "8d5bb74a4956debf5a37fa1e04d81723910cb889",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/ba4fe10a27cff9fb5bbd2a4673e0c65fb3040e62",
|
||||
"reference": "ba4fe10a27cff9fb5bbd2a4673e0c65fb3040e62",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -832,7 +832,7 @@
|
||||
],
|
||||
"description": "ThinkPHP v6.0 Development Library",
|
||||
"homepage": "http://framework.thinkadmin.top",
|
||||
"time": "2019-11-28T09:07:59+00:00"
|
||||
"time": "2019-11-29T01:31:35+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -805,12 +805,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "ceaf13318bc180c168f3a993018d5bf634848a0a"
|
||||
"reference": "ba4fe10a27cff9fb5bbd2a4673e0c65fb3040e62"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/ceaf13318bc180c168f3a993018d5bf634848a0a",
|
||||
"reference": "ceaf13318bc180c168f3a993018d5bf634848a0a",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/ba4fe10a27cff9fb5bbd2a4673e0c65fb3040e62",
|
||||
"reference": "ba4fe10a27cff9fb5bbd2a4673e0c65fb3040e62",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -826,7 +826,7 @@
|
||||
"ext-json": "*",
|
||||
"topthink/framework": "^6.0"
|
||||
},
|
||||
"time": "2019-11-28T10:18:05+00:00",
|
||||
"time": "2019-11-29T01:31:35+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"think": {
|
||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// This file is automatically generated at:2019-11-28 18:21:02
|
||||
// This file is automatically generated at:2019-11-29 10:17:52
|
||||
declare (strict_types = 1);
|
||||
return array (
|
||||
0 => 'think\\app\\Service',
|
||||
|
@ -96,7 +96,7 @@ class AdminService extends Service
|
||||
if (($uid = $this->app->session->get('user.id'))) {
|
||||
$user = $this->app->db->name('SystemUser')->where(['id' => $uid])->find();
|
||||
if (($aids = $user['authorize'])) {
|
||||
$where = [['status', 'eq', '1'], ['id', 'in', explode(',', $aids)]];
|
||||
$where = [['status', '=', '1'], ['id', 'in', explode(',', $aids)]];
|
||||
$subsql = $this->app->db->name('SystemAuth')->field('id')->where($where)->buildSql();
|
||||
$user['nodes'] = array_unique($this->app->db->name('SystemAuthNode')->whereRaw("auth in {$subsql}")->column('node'));
|
||||
$this->app->session->set('user', $user);
|
||||
|
@ -177,7 +177,7 @@ class SystemService extends Service
|
||||
public function putDebug($data, $new = false, $file = null)
|
||||
{
|
||||
if (is_null($file)) $file = $this->app->getRuntimePath() . date('Ymd') . '.txt';
|
||||
$str = (is_string($data) ? $data : (is_array($data) || is_object($data)) ? print_r($data, true) : var_export($data, true)) . PHP_EOL;
|
||||
$str = (is_string($data) ? $data : ((is_array($data) || is_object($data)) ? print_r($data, true) : var_export($data, true))) . PHP_EOL;
|
||||
$new ? file_put_contents($file, $str) : file_put_contents($file, $str, FILE_APPEND);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user