正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -64,6 +64,7 @@ class SyncProject extends Command | @@ -64,6 +64,7 @@ class SyncProject extends Command | ||
| 64 | while (true){ | 64 | while (true){ |
| 65 | $list = NoticeLog::where('type', NoticeLog::TYPE_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get(); | 65 | $list = NoticeLog::where('type', NoticeLog::TYPE_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get(); |
| 66 | foreach ($list as $item){ | 66 | foreach ($list as $item){ |
| 67 | + echo 'start:' . $item['id'] . PHP_EOL; | ||
| 67 | try { | 68 | try { |
| 68 | $is_update = $item['data']['is_update']??0;//是否是4.0或5.0更新到6.0 | 69 | $is_update = $item['data']['is_update']??0;//是否是4.0或5.0更新到6.0 |
| 69 | $order_id = $item['data']['order_id']; | 70 | $order_id = $item['data']['order_id']; |
| @@ -94,7 +95,9 @@ class SyncProject extends Command | @@ -94,7 +95,9 @@ class SyncProject extends Command | ||
| 94 | } | 95 | } |
| 95 | $item->status = NoticeLog::STATUS_SUCCESS; | 96 | $item->status = NoticeLog::STATUS_SUCCESS; |
| 96 | $item->save(); | 97 | $item->save(); |
| 98 | + echo 'success:' . $item['id'] . PHP_EOL; | ||
| 97 | }catch (\Exception $e){ | 99 | }catch (\Exception $e){ |
| 100 | + echo 'error:' . $item['id'] . $e->getMessage() . PHP_EOL; | ||
| 98 | errorLog('项目同步失败', $item, $e); | 101 | errorLog('项目同步失败', $item, $e); |
| 99 | $this->retry($item); | 102 | $this->retry($item); |
| 100 | } | 103 | } |
-
请 注册 或 登录 后发表评论