作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !376
@@ -464,6 +464,10 @@ class ProjectUpdate extends Command @@ -464,6 +464,10 @@ class ProjectUpdate extends Command
464 'image' => $new_img, 464 'image' => $new_img,
465 'sort' => $item['sort'] ?? 0, 465 'sort' => $item['sort'] ?? 0,
466 ], ['id' => $id]); 466 ], ['id' => $id]);
  467 +
  468 + if($project_id == 547){
  469 + CollectTask::_insert($item['url'], $project_id, $api_type == 'news' ? RouteMap::SOURCE_NEWS : RouteMap::SOURCE_BLOG, $id, $domain_arr['host'], $link_type, $language_list, $page_list);
  470 + }
467 } 471 }
468 } catch (\Exception $e) { 472 } catch (\Exception $e) {
469 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; 473 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL;
@@ -526,6 +530,10 @@ class ProjectUpdate extends Command @@ -526,6 +530,10 @@ class ProjectUpdate extends Command
526 'description' => $item['description'] ?? '', 530 'description' => $item['description'] ?? '',
527 'html' => $item['content'] ?? '', 531 'html' => $item['content'] ?? '',
528 ], ['id' => $id]); 532 ], ['id' => $id]);
  533 +
  534 + if($project_id == 547){
  535 + CollectTask::_insert($item['url'], $project_id, RouteMap::SOURCE_PAGE, $id, $domain_arr['host'], $link_type, $language_list, $page_list);
  536 + }
529 } 537 }
530 } catch (\Exception $e) { 538 } catch (\Exception $e) {
531 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; 539 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL;
@@ -625,6 +633,10 @@ class ProjectUpdate extends Command @@ -625,6 +633,10 @@ class ProjectUpdate extends Command
625 'content' => $item['content'] ?? '', 633 'content' => $item['content'] ?? '',
626 'image' => $new_img 634 'image' => $new_img
627 ], ['id' => $id]); 635 ], ['id' => $id]);
  636 +
  637 + if($project_id == 547){
  638 + CollectTask::_insert($item['url'], $project_id, RouteMap::SOURCE_MODULE, $id, $domain_arr['host'], $link_type, $language_list, $page_list);
  639 + }
628 } 640 }
629 641
630 //扩展字段 642 //扩展字段