This commit is contained in:
tao 2021-12-10 19:22:23 +08:00
parent b6eb893a4c
commit 546f293aa7
7 changed files with 21 additions and 22 deletions

View File

@ -289,7 +289,6 @@ class Addons extends AdminController
$name = input('name');
$arr = ['status' => 0];
$res = set_addons_info($name,$arr);
var_dump($res);
return json(['code'=>-1,'msg'=>$name.'插件已禁用']);
}
@ -298,7 +297,6 @@ class Addons extends AdminController
public function config($name)
{
$name = input('name');
//var_dump($name);
$config = get_addons_config($name);
if(empty($config)) return json(['code'=>-1,'msg'=>'无配置项!']);
if(Request::isAjax()){

View File

@ -68,6 +68,7 @@ class User extends Model
//将用户数据写入Session
Session::set('user_id',$user['id']);
Session::set('user_name',$user['name']);
//记住密码
if(isset($data['remember'])){
$salt = Config::get('taoler.salt');
//加密auth存入cookie

12
composer.lock generated
View File

@ -71,16 +71,16 @@
},
{
"name": "league/flysystem",
"version": "1.1.8",
"version": "1.1.9",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "c995bb0c23c58c9813d081f9523c9b7bb496698e"
"reference": "094defdb4a7001845300334e7c1ee2335925ef99"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/c995bb0c23c58c9813d081f9523c9b7bb496698e",
"reference": "c995bb0c23c58c9813d081f9523c9b7bb496698e",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/094defdb4a7001845300334e7c1ee2335925ef99",
"reference": "094defdb4a7001845300334e7c1ee2335925ef99",
"shasum": "",
"mirrors": [
{
@ -159,7 +159,7 @@
],
"support": {
"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": [
{
@ -167,7 +167,7 @@
"type": "other"
}
],
"time": "2021-11-28T21:50:23+00:00"
"time": "2021-12-09T09:40:50+00:00"
},
{
"name": "league/flysystem-cached-adapter",

View File

@ -68,17 +68,17 @@
},
{
"name": "league/flysystem",
"version": "1.1.8",
"version_normalized": "1.1.8.0",
"version": "1.1.9",
"version_normalized": "1.1.9.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "c995bb0c23c58c9813d081f9523c9b7bb496698e"
"reference": "094defdb4a7001845300334e7c1ee2335925ef99"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/c995bb0c23c58c9813d081f9523c9b7bb496698e",
"reference": "c995bb0c23c58c9813d081f9523c9b7bb496698e",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/094defdb4a7001845300334e7c1ee2335925ef99",
"reference": "094defdb4a7001845300334e7c1ee2335925ef99",
"shasum": "",
"mirrors": [
{
@ -114,7 +114,7 @@
"spatie/flysystem-dropbox": "Allows you to use Dropbox storage",
"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",
"extra": {
"branch-alias": {
@ -159,7 +159,7 @@
],
"support": {
"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": [
{

View File

@ -5,7 +5,7 @@
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '5f43c95f699af5570f9aa0fdbf279d069607cdc8',
'reference' => 'b6eb893a4cc88c8d03d8d6fdcbf1663ccc8b1cc6',
'name' => 'taoser/taoler',
'dev' => true,
),
@ -20,12 +20,12 @@
'dev_requirement' => false,
),
'league/flysystem' => array(
'pretty_version' => '1.1.8',
'version' => '1.1.8.0',
'pretty_version' => '1.1.9',
'version' => '1.1.9.0',
'type' => 'library',
'install_path' => __DIR__ . '/../league/flysystem',
'aliases' => array(),
'reference' => 'c995bb0c23c58c9813d081f9523c9b7bb496698e',
'reference' => '094defdb4a7001845300334e7c1ee2335925ef99',
'dev_requirement' => false,
),
'league/flysystem-cached-adapter' => array(
@ -142,7 +142,7 @@
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '5f43c95f699af5570f9aa0fdbf279d069607cdc8',
'reference' => 'b6eb893a4cc88c8d03d8d6fdcbf1663ccc8b1cc6',
'dev_requirement' => false,
),
'taoser/think-addons' => array(

View File

@ -67,6 +67,6 @@ abstract class AbstractAdapter implements AdapterInterface
*/
public function removePathPrefix($path)
{
return substr($path, strlen($this->getPathPrefix()));
return substr($path, strlen((string) $this->getPathPrefix()));
}
}

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?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);
return array (
0 => 'taoser\\addons\\Service',