作者 刘锟

update

@@ -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 }