作者 ZhengBing He

log

@@ -102,14 +102,13 @@ class FetchTicketProjects extends Command @@ -102,14 +102,13 @@ class FetchTicketProjects extends Command
102 $project->save(); 102 $project->save();
103 } 103 }
104 } 104 }
105 - echo "V5: {$item['postid']} - {$item['title']} - {$item['company']} - {$item['main_url']}\n";  
106 } 105 }
107 $postids = collect($items)->pluck('postid')->toArray(); 106 $postids = collect($items)->pluck('postid')->toArray();
108 // 软删除 gl_ticket_projects 中不存在的项目 107 // 软删除 gl_ticket_projects 中不存在的项目
109 TicketProject::where('version', 5) 108 TicketProject::where('version', 5)
110 ->whereNotIn('post_id', $postids) 109 ->whereNotIn('post_id', $postids)
111 ->update(['is_del' => 1]); 110 ->update(['is_del' => 1]);
112 - echo "V5: fetch completed, total " . count($items) . " items\n"; 111 + echo date("Y-m-d H:i:s") . " V5: fetch completed, total " . count($items) . " items\n";
113 } 112 }
114 } 113 }
115 114