update
This commit is contained in:
parent
b6eb893a4c
commit
546f293aa7
@ -289,7 +289,6 @@ class Addons extends AdminController
|
|||||||
$name = input('name');
|
$name = input('name');
|
||||||
$arr = ['status' => 0];
|
$arr = ['status' => 0];
|
||||||
$res = set_addons_info($name,$arr);
|
$res = set_addons_info($name,$arr);
|
||||||
var_dump($res);
|
|
||||||
return json(['code'=>-1,'msg'=>$name.'插件已禁用']);
|
return json(['code'=>-1,'msg'=>$name.'插件已禁用']);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -298,7 +297,6 @@ class Addons extends AdminController
|
|||||||
public function config($name)
|
public function config($name)
|
||||||
{
|
{
|
||||||
$name = input('name');
|
$name = input('name');
|
||||||
//var_dump($name);
|
|
||||||
$config = get_addons_config($name);
|
$config = get_addons_config($name);
|
||||||
if(empty($config)) return json(['code'=>-1,'msg'=>'无配置项!']);
|
if(empty($config)) return json(['code'=>-1,'msg'=>'无配置项!']);
|
||||||
if(Request::isAjax()){
|
if(Request::isAjax()){
|
||||||
|
@ -68,6 +68,7 @@ class User extends Model
|
|||||||
//将用户数据写入Session
|
//将用户数据写入Session
|
||||||
Session::set('user_id',$user['id']);
|
Session::set('user_id',$user['id']);
|
||||||
Session::set('user_name',$user['name']);
|
Session::set('user_name',$user['name']);
|
||||||
|
//记住密码
|
||||||
if(isset($data['remember'])){
|
if(isset($data['remember'])){
|
||||||
$salt = Config::get('taoler.salt');
|
$salt = Config::get('taoler.salt');
|
||||||
//加密auth存入cookie
|
//加密auth存入cookie
|
||||||
|
12
composer.lock
generated
12
composer.lock
generated
@ -71,16 +71,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/flysystem",
|
"name": "league/flysystem",
|
||||||
"version": "1.1.8",
|
"version": "1.1.9",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/thephpleague/flysystem.git",
|
"url": "https://github.com/thephpleague/flysystem.git",
|
||||||
"reference": "c995bb0c23c58c9813d081f9523c9b7bb496698e"
|
"reference": "094defdb4a7001845300334e7c1ee2335925ef99"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/c995bb0c23c58c9813d081f9523c9b7bb496698e",
|
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/094defdb4a7001845300334e7c1ee2335925ef99",
|
||||||
"reference": "c995bb0c23c58c9813d081f9523c9b7bb496698e",
|
"reference": "094defdb4a7001845300334e7c1ee2335925ef99",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -159,7 +159,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/thephpleague/flysystem/issues",
|
"issues": "https://github.com/thephpleague/flysystem/issues",
|
||||||
"source": "https://github.com/thephpleague/flysystem/tree/1.1.8"
|
"source": "https://github.com/thephpleague/flysystem/tree/1.1.9"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@ -167,7 +167,7 @@
|
|||||||
"type": "other"
|
"type": "other"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-11-28T21:50:23+00:00"
|
"time": "2021-12-09T09:40:50+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/flysystem-cached-adapter",
|
"name": "league/flysystem-cached-adapter",
|
||||||
|
14
vendor/composer/installed.json
vendored
14
vendor/composer/installed.json
vendored
@ -68,17 +68,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/flysystem",
|
"name": "league/flysystem",
|
||||||
"version": "1.1.8",
|
"version": "1.1.9",
|
||||||
"version_normalized": "1.1.8.0",
|
"version_normalized": "1.1.9.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/thephpleague/flysystem.git",
|
"url": "https://github.com/thephpleague/flysystem.git",
|
||||||
"reference": "c995bb0c23c58c9813d081f9523c9b7bb496698e"
|
"reference": "094defdb4a7001845300334e7c1ee2335925ef99"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/c995bb0c23c58c9813d081f9523c9b7bb496698e",
|
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/094defdb4a7001845300334e7c1ee2335925ef99",
|
||||||
"reference": "c995bb0c23c58c9813d081f9523c9b7bb496698e",
|
"reference": "094defdb4a7001845300334e7c1ee2335925ef99",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -114,7 +114,7 @@
|
|||||||
"spatie/flysystem-dropbox": "Allows you to use Dropbox storage",
|
"spatie/flysystem-dropbox": "Allows you to use Dropbox storage",
|
||||||
"srmklive/flysystem-dropbox-v2": "Allows you to use Dropbox storage for PHP 5 applications"
|
"srmklive/flysystem-dropbox-v2": "Allows you to use Dropbox storage for PHP 5 applications"
|
||||||
},
|
},
|
||||||
"time": "2021-11-28T21:50:23+00:00",
|
"time": "2021-12-09T09:40:50+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
@ -159,7 +159,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/thephpleague/flysystem/issues",
|
"issues": "https://github.com/thephpleague/flysystem/issues",
|
||||||
"source": "https://github.com/thephpleague/flysystem/tree/1.1.8"
|
"source": "https://github.com/thephpleague/flysystem/tree/1.1.9"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
10
vendor/composer/installed.php
vendored
10
vendor/composer/installed.php
vendored
@ -5,7 +5,7 @@
|
|||||||
'type' => 'project',
|
'type' => 'project',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'reference' => '5f43c95f699af5570f9aa0fdbf279d069607cdc8',
|
'reference' => 'b6eb893a4cc88c8d03d8d6fdcbf1663ccc8b1cc6',
|
||||||
'name' => 'taoser/taoler',
|
'name' => 'taoser/taoler',
|
||||||
'dev' => true,
|
'dev' => true,
|
||||||
),
|
),
|
||||||
@ -20,12 +20,12 @@
|
|||||||
'dev_requirement' => false,
|
'dev_requirement' => false,
|
||||||
),
|
),
|
||||||
'league/flysystem' => array(
|
'league/flysystem' => array(
|
||||||
'pretty_version' => '1.1.8',
|
'pretty_version' => '1.1.9',
|
||||||
'version' => '1.1.8.0',
|
'version' => '1.1.9.0',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../league/flysystem',
|
'install_path' => __DIR__ . '/../league/flysystem',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'reference' => 'c995bb0c23c58c9813d081f9523c9b7bb496698e',
|
'reference' => '094defdb4a7001845300334e7c1ee2335925ef99',
|
||||||
'dev_requirement' => false,
|
'dev_requirement' => false,
|
||||||
),
|
),
|
||||||
'league/flysystem-cached-adapter' => array(
|
'league/flysystem-cached-adapter' => array(
|
||||||
@ -142,7 +142,7 @@
|
|||||||
'type' => 'project',
|
'type' => 'project',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'reference' => '5f43c95f699af5570f9aa0fdbf279d069607cdc8',
|
'reference' => 'b6eb893a4cc88c8d03d8d6fdcbf1663ccc8b1cc6',
|
||||||
'dev_requirement' => false,
|
'dev_requirement' => false,
|
||||||
),
|
),
|
||||||
'taoser/think-addons' => array(
|
'taoser/think-addons' => array(
|
||||||
|
@ -67,6 +67,6 @@ abstract class AbstractAdapter implements AdapterInterface
|
|||||||
*/
|
*/
|
||||||
public function removePathPrefix($path)
|
public function removePathPrefix($path)
|
||||||
{
|
{
|
||||||
return substr($path, strlen($this->getPathPrefix()));
|
return substr($path, strlen((string) $this->getPathPrefix()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
// This file is automatically generated at:2021-12-07 09:55:25
|
// This file is automatically generated at:2021-12-10 19:21:13
|
||||||
declare (strict_types = 1);
|
declare (strict_types = 1);
|
||||||
return array (
|
return array (
|
||||||
0 => 'taoser\\addons\\Service',
|
0 => 'taoser\\addons\\Service',
|
||||||
|
Loading…
Reference in New Issue
Block a user