作者 lyh

gx

... ... @@ -10,6 +10,7 @@
namespace App\Console\Commands\SyncFilesImage;
use App\Models\File\File;
use App\Models\File\Image;
use Illuminate\Console\Command;
class SyncProjectFile extends Command
... ... @@ -31,7 +32,7 @@ class SyncProjectFile extends Command
public function handle(){
$project_id = $this->argument('project_id');
$fileModel = new File();
$fileModel = new Image();
$lists = $fileModel->list(['project_id'=>$project_id]);//未同步成功的图片及文件
foreach ($lists as $k => $v){
if(strpos($v['path'], '/181/') !== false ){
... ...