正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -60,6 +60,7 @@ class Demo extends Command | @@ -60,6 +60,7 @@ class Demo extends Command | ||
| 60 | echo date('Y-m-d H:i:s') . '执行的数据id:' . $v['id'] . '名称:'.$v['name'] . PHP_EOL; | 60 | echo date('Y-m-d H:i:s') . '执行的数据id:' . $v['id'] . '名称:'.$v['name'] . PHP_EOL; |
| 61 | $amazonS3Service->syncImageFiles(getFileUrl($v['path'])); | 61 | $amazonS3Service->syncImageFiles(getFileUrl($v['path'])); |
| 62 | $fileModel->edit(['is_cos'=>0],['id'=>$v['id']]); | 62 | $fileModel->edit(['is_cos'=>0],['id'=>$v['id']]); |
| 63 | + gc_collect_cycles(); | ||
| 63 | } | 64 | } |
| 64 | } | 65 | } |
| 65 | return true; | 66 | return true; |
-
请 注册 或 登录 后发表评论