正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -236,6 +236,8 @@ class ProjectUpdate extends Command | @@ -236,6 +236,8 @@ class ProjectUpdate extends Command | ||
| 236 | if ($custom_types) { | 236 | if ($custom_types) { |
| 237 | $custom_model = new CustomModule(); | 237 | $custom_model = new CustomModule(); |
| 238 | foreach ($custom_types as $v_custom) { | 238 | foreach ($custom_types as $v_custom) { |
| 239 | + $log = UpdateLog::where('project_id', $project_id)->where('api_type', $v_custom)->first(); | ||
| 240 | + if (empty($log)) { | ||
| 239 | try { | 241 | try { |
| 240 | $custom_info = $custom_model->read(['route' => $v_custom]); | 242 | $custom_info = $custom_model->read(['route' => $v_custom]); |
| 241 | if (!$custom_info) { | 243 | if (!$custom_info) { |
| @@ -252,6 +254,7 @@ class ProjectUpdate extends Command | @@ -252,6 +254,7 @@ class ProjectUpdate extends Command | ||
| 252 | } | 254 | } |
| 253 | } | 255 | } |
| 254 | } | 256 | } |
| 257 | + } | ||
| 255 | } else { | 258 | } else { |
| 256 | return true; | 259 | return true; |
| 257 | } | 260 | } |
-
请 注册 或 登录 后发表评论