35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: 赵光帅
|
|
* Date: 2018/4/23
|
|
* Time: 13:58
|
|
*/
|
|
/**
|
|
* 上传文件配置
|
|
*/
|
|
return [
|
|
|
|
//上传文件的路径
|
|
'img_path' => ROOT_PATH . 'public' . DS ,
|
|
//缩略图地址
|
|
'thum_path' => ROOT_PATH . 'public' . DS . 'uploads' . DS .'thum',
|
|
//缩略图路径
|
|
'thum_lujing' => 'uploads' . DS .'thum'. DS .date('Ymd',time()),
|
|
//缩略图url
|
|
'thum_url' => Env::get('uploadFile.thum_url'),
|
|
//腾讯云COS地址
|
|
'url' => Env::get('uploadFile.url'),
|
|
//虚拟主机地址
|
|
'host_url' => Env::get('uploadFile.host_url'),
|
|
//上传文件类型
|
|
'file_type' =>'jpg,png,gif,jpeg,pdf,doc,docx,xls,xlsx,html,htm,txt,apk,ipa,plist,mp4',
|
|
//存储桶
|
|
'access_key_id' => Env::get('uploadFile.access_key_id',''),
|
|
'access_key_secret' => Env::get('uploadFile.access_key_secret',''),
|
|
'endpoint' => Env::get('uploadFile.endpoint',''),
|
|
'bucket' => Env::get('uploadFile.bucket',''),
|
|
// 旧评估系统图片访问url
|
|
//'old_cspg_url' => 'http://www.ecspg.com/Uploads',
|
|
|
|
]; |