作者 lyh

gx

@@ -49,7 +49,7 @@ class SyncProject extends Command @@ -49,7 +49,7 @@ class SyncProject extends Command
49 */ 49 */
50 public function handle() 50 public function handle()
51 { 51 {
52 - $list = NoticeLog::where('type', NoticeLog::TYPE_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get()->toArray(); 52 + $list = NoticeLog::where('type', NoticeLog::TYPE_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get();
53 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($list, true) . PHP_EOL, FILE_APPEND); 53 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($list, true) . PHP_EOL, FILE_APPEND);
54 foreach ($list as $item){ 54 foreach ($list as $item){
55 // try { 55 // try {