|
...
|
...
|
@@ -64,6 +64,7 @@ class SyncProject extends Command |
|
|
|
while (true){
|
|
|
|
$list = NoticeLog::where('type', NoticeLog::TYPE_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get();
|
|
|
|
foreach ($list as $item){
|
|
|
|
echo 'start:' . $item['id'] . PHP_EOL;
|
|
|
|
try {
|
|
|
|
$is_update = $item['data']['is_update']??0;//是否是4.0或5.0更新到6.0
|
|
|
|
$order_id = $item['data']['order_id'];
|
|
...
|
...
|
@@ -94,7 +95,9 @@ class SyncProject extends Command |
|
|
|
}
|
|
|
|
$item->status = NoticeLog::STATUS_SUCCESS;
|
|
|
|
$item->save();
|
|
|
|
echo 'success:' . $item['id'] . PHP_EOL;
|
|
|
|
}catch (\Exception $e){
|
|
|
|
echo 'error:' . $item['id'] . $e->getMessage() . PHP_EOL;
|
|
|
|
errorLog('项目同步失败', $item, $e);
|
|
|
|
$this->retry($item);
|
|
|
|
}
|
...
|
...
|
|