作者 zhl

拆分同步脚本

@@ -112,7 +112,7 @@ class SyncInquiryProject extends Command @@ -112,7 +112,7 @@ class SyncInquiryProject extends Command
112 } 112 }
113 } 113 }
114 114
115 - $ids = InquiryProject::where('date', '<', $date)->where('version', '<', InquiryProject::VERSION_SIX)->pluck('id')->toArrat(); 115 + $ids = InquiryProject::where('date', '<', $date)->where('version', '<', InquiryProject::VERSION_SIX)->pluck('id')->toArray();
116 $this->deleteExpire($ids); 116 $this->deleteExpire($ids);
117 117
118 return true; 118 return true;
@@ -146,7 +146,7 @@ class SyncInquiryProject extends Command @@ -146,7 +146,7 @@ class SyncInquiryProject extends Command
146 $this->pushTask($project->id); 146 $this->pushTask($project->id);
147 } 147 }
148 148
149 - $ids = InquiryProject::where('date', '<', $date)->where('version', '=', InquiryProject::VERSION_SIX)->pluck('id')->toArrat(); 149 + $ids = InquiryProject::where('date', '<', $date)->where('version', '=', InquiryProject::VERSION_SIX)->pluck('id')->toArraty();
150 $this->deleteExpire($ids); 150 $this->deleteExpire($ids);
151 151
152 return true; 152 return true;