作者 lyh

gx

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