ComposerUpdate

This commit is contained in:
Anyon 2019-11-28 10:56:36 +08:00
parent fef414759e
commit fdd2ca528b
5 changed files with 29 additions and 42 deletions

8
composer.lock generated
View File

@ -783,12 +783,12 @@
"source": {
"type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "a77fd83917548d92d044a3481f01b102abbf1be9"
"reference": "c65a66a1df421bd480f564378909ae9ef36c2191"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/a77fd83917548d92d044a3481f01b102abbf1be9",
"reference": "a77fd83917548d92d044a3481f01b102abbf1be9",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/c65a66a1df421bd480f564378909ae9ef36c2191",
"reference": "c65a66a1df421bd480f564378909ae9ef36c2191",
"shasum": "",
"mirrors": [
{
@ -832,7 +832,7 @@
],
"description": "ThinkPHP v6.0 Development Library",
"homepage": "http://framework.thinkadmin.top",
"time": "2019-11-28T02:30:34+00:00"
"time": "2019-11-28T02:43:48+00:00"
}
],
"packages-dev": [],

View File

@ -805,12 +805,12 @@
"source": {
"type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "a77fd83917548d92d044a3481f01b102abbf1be9"
"reference": "c65a66a1df421bd480f564378909ae9ef36c2191"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/a77fd83917548d92d044a3481f01b102abbf1be9",
"reference": "a77fd83917548d92d044a3481f01b102abbf1be9",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/c65a66a1df421bd480f564378909ae9ef36c2191",
"reference": "c65a66a1df421bd480f564378909ae9ef36c2191",
"shasum": "",
"mirrors": [
{
@ -826,7 +826,7 @@
"ext-json": "*",
"topthink/framework": "^6.0"
},
"time": "2019-11-28T02:30:34+00:00",
"time": "2019-11-28T02:43:48+00:00",
"type": "library",
"extra": {
"think": {

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?php
// This file is automatically generated at:2019-11-28 10:32:44
// This file is automatically generated at:2019-11-28 10:56:22
declare (strict_types = 1);
return array (
0 => 'think\\app\\Service',

View File

@ -29,7 +29,7 @@ ThinkLibrary 6.0 是针对 ThinkPHP 6.0 版本封装的一套工具类库,方
部分代码来自互联网,若有异议可以联系作者进行删除。
* 在线体验地址https://demo.thinkadmin.top (账号和密码都是 admin
* 在线体验地址https://v6.thinkadmin.top (账号和密码都是 admin
* Gitee仓库地址https://gitee.com/zoujingli/ThinkLibrary
* GitHub仓库地址https://github.com/zoujingli/ThinkLibrary
@ -159,23 +159,15 @@ $this->_save($dbQuery,['status'=>'1']);
```php
// 配置默认存储方式
sysconf('storage_type','文件存储类型');
// OSS存储配置
sysconf('storage_oss_domain', '文件访问域名');
sysconf('storage_oss_keyid', '接口授权AppId');
sysconf('storage_oss_secret', '接口授权AppSecret');
sysconf('storage_oss_bucket', '文件存储空间名称');
sysconf('storage_oss_is_https', '文件HTTP访问协议');
sysconf('storage_oss_endpoint', '文件存储节点域名');
sysconf('storage.type','文件存储类型');
// 七牛云存储配置
sysconf('storage_qiniu_region', '文件存储节点');
sysconf('storage_qiniu_domain', '文件访问域名');
sysconf('storage_qiniu_bucket', '文件存储空间名称');
sysconf('storage_qiniu_is_https', '文件HTTP访问协议');
sysconf('storage_qiniu_access_key', '接口授权AccessKey');
sysconf('storage_qiniu_secret_key', '接口授权SecretKey');
sysconf('storage.qiniu_region', '文件存储节点');
sysconf('storage.qiniu_domain', '文件访问域名');
sysconf('storage.qiniu_bucket', '文件存储空间名称');
sysconf('storage.qiniu_is_https', '文件HTTP访问协议');
sysconf('storage.qiniu_access_key', '接口授权AccessKey');
sysconf('storage.qiniu_secret_key', '接口授权SecretKey');
// 生成文件名称(链接url或文件md5)
@ -197,15 +189,12 @@ $result = \think\admin\Storage::info($filename);
boolean \think\admin\Storage::instance('local')->save($filename, $content);
boolean \think\admin\Storage::instance('qiniu')->save($filename, $content);
$result = \think\admin\Storage::instance('oss')->get($filename);
$result = \think\admin\Storage::instance('local')->get($filename);
$result = \think\admin\Storage::instance('qiniu')->get($filename);
boolean \think\admin\Storage::instance('oss')->has($filename);
boolean \think\admin\Storage::instance('local')->has($filename);
boolean \think\admin\Storage::instance('qiniu')->has($filename);
$resutl = \think\admin\Storage::instance('oss')->info($filename);
$resutl = \think\admin\Storage::instance('local')->info($filename);
$resutl = \think\admin\Storage::instance('qiniu')->info($filename);
```
@ -220,11 +209,9 @@ boolean data_save($dbQuery,$data,'pkname',$where);
```php
// 发起get请求
$result = http_get($url, $query, $options);
$result = \library\tools\Http::get($url,$query,$options);
// 发起post请求
$result = http_post($url, $data, $options);
$result = \library\tools\Http::post($url,$data,$options);
```
#### 系统参数配置(基于 system_config 数据表)

View File

@ -22,7 +22,7 @@ use think\console\Input;
use think\console\Output;
/**
* 获取当前框架版本号
* 获取框架版本号
* Class Version
* @package think\admin\command
*/