作者 lyh

gx

... ... @@ -326,7 +326,7 @@ class ImageController extends Controller
if(!isset($this->param['upload_method'])){
//根据项目上传标识区分上传到cos/本地
$projectModel = new Project();
$project_info = $projectModel->read(['id'=>$this->cache['project_id']],['upload_location']);
$project_info = $projectModel->read(['id'=>$this->cache['project_id']],['project_location']);
if ($project_info['project_location'] == 0) {//不为普通项目时 上传到本地服务器
$this->upload_location = 1;//上传到cos
}
... ...
... ... @@ -5,7 +5,7 @@
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"php": "^7.4|^8.1",
"bensampo/laravel-enum": "^4.2",
"doctrine/dbal": "^3.6",
"fruitcake/laravel-cors": "^2.0",
... ...