作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !384
@@ -374,6 +374,8 @@ class ProjectUpdate extends Command @@ -374,6 +374,8 @@ class ProjectUpdate extends Command
374 'values' => $ve, 374 'values' => $ve,
375 'type' => 1 375 'type' => 1
376 ]); 376 ]);
  377 + } else {
  378 + $extend_info_model->edit(['values' => $ve], ['key' => $extend_key, 'product_id' => $id]);
377 } 379 }
378 } 380 }
379 } 381 }
@@ -464,10 +466,6 @@ class ProjectUpdate extends Command @@ -464,10 +466,6 @@ class ProjectUpdate extends Command
464 'image' => $new_img, 466 'image' => $new_img,
465 'sort' => $item['sort'] ?? 0, 467 'sort' => $item['sort'] ?? 0,
466 ], ['id' => $id]); 468 ], ['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 - }  
471 } 469 }
472 } catch (\Exception $e) { 470 } catch (\Exception $e) {
473 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; 471 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL;
@@ -530,10 +528,6 @@ class ProjectUpdate extends Command @@ -530,10 +528,6 @@ class ProjectUpdate extends Command
530 'description' => $item['description'] ?? '', 528 'description' => $item['description'] ?? '',
531 'html' => $item['content'] ?? '', 529 'html' => $item['content'] ?? '',
532 ], ['id' => $id]); 530 ], ['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 - }  
537 } 531 }
538 } catch (\Exception $e) { 532 } catch (\Exception $e) {
539 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; 533 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL;
@@ -593,7 +587,7 @@ class ProjectUpdate extends Command @@ -593,7 +587,7 @@ class ProjectUpdate extends Command
593 $category_id = $category_custom['id']; 587 $category_id = $category_custom['id'];
594 } 588 }
595 } 589 }
596 - if($category_id){ 590 + if ($category_id) {
597 $category_id = ',' . $category_id . ','; 591 $category_id = ',' . $category_id . ',';
598 } 592 }
599 //图片 593 //图片
@@ -633,10 +627,6 @@ class ProjectUpdate extends Command @@ -633,10 +627,6 @@ class ProjectUpdate extends Command
633 'content' => $item['content'] ?? '', 627 'content' => $item['content'] ?? '',
634 'image' => $new_img 628 'image' => $new_img
635 ], ['id' => $id]); 629 ], ['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 - }  
640 } 630 }
641 631
642 //扩展字段 632 //扩展字段