作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -33,7 +33,7 @@ class UpgradeProjectCount extends Command @@ -33,7 +33,7 @@ class UpgradeProjectCount extends Command
33 protected $description = '升级项目统计'; 33 protected $description = '升级项目统计';
34 34
35 public function handle(){ 35 public function handle(){
36 - $project_id = 759; 36 + $project_id = 450;
37 ProjectServer::useProject($project_id); 37 ProjectServer::useProject($project_id);
38 $this->count($project_id); 38 $this->count($project_id);
39 DB::disconnect('custom_mysql'); 39 DB::disconnect('custom_mysql');
@@ -36,7 +36,7 @@ class UpgradeProjectCount extends Command @@ -36,7 +36,7 @@ class UpgradeProjectCount extends Command
36 protected $description = '升级项目统计'; 36 protected $description = '升级项目统计';
37 37
38 public function handle(){ 38 public function handle(){
39 - $project_id = 759; 39 + $project_id = 450;
40 $oldModel = new UpdateOldInfo(); 40 $oldModel = new UpdateOldInfo();
41 $info = $oldModel->read(['project_id'=>$project_id]); 41 $info = $oldModel->read(['project_id'=>$project_id]);
42 $url = $info['old_domain_online']; 42 $url = $info['old_domain_online'];
@@ -124,4 +124,5 @@ class BaseController extends Controller @@ -124,4 +124,5 @@ class BaseController extends Controller
124 $response = response($result,$result_code,$this->header); 124 $response = response($result,$result_code,$this->header);
125 throw new HttpResponseException($response); 125 throw new HttpResponseException($response);
126 } 126 }
  127 +
127 } 128 }
@@ -114,9 +114,8 @@ class FileManageController extends BaseController @@ -114,9 +114,8 @@ class FileManageController extends BaseController
114 $hash = hash_file('md5', $file->getPathname()); 114 $hash = hash_file('md5', $file->getPathname());
115 $info = FileManage::where('hash', $hash)->first(); 115 $info = FileManage::where('hash', $hash)->first();
116 if($info){ 116 if($info){
117 - $this->fail('文件已存在'.$hash); 117 + $this->fail('文件已上传,文件名称.'.$info['name']);
118 } 118 }
119 -  
120 return [ 119 return [
121 'size' => $size, 120 'size' => $size,
122 'extension' => $extension, 121 'extension' => $extension,