作者 lyh

gx脚本锚文本数量

@@ -52,7 +52,12 @@ class lyhDemo extends Command @@ -52,7 +52,12 @@ class lyhDemo extends Command
52 $projectArr = [3257,1835,1834]; 52 $projectArr = [3257,1835,1834];
53 $v6WeekModel = new V6WeeklyReport(); 53 $v6WeekModel = new V6WeeklyReport();
54 foreach ($projectArr as $item){ 54 foreach ($projectArr as $item){
  55 + $projectModel = new Project();
55 $latest = $v6WeekModel->formatQuery(['project_id'=>$item])->orderBy('id', 'desc')->first()->toArray(); 56 $latest = $v6WeekModel->formatQuery(['project_id'=>$item])->orderBy('id', 'desc')->first()->toArray();
  57 + $list = $projectModel->read(['delete_status'=>0,'id'=>$item],['id','title','is_weekly_report','main_lang_id']);
  58 + $latest['main_lang_id'] = $list['main_lang_id'];
  59 + $latest['is_weekly_report'] = $list['is_weekly_report'];
  60 + $latest['title'] = $list['title'];
56 $this->workChatMessage($latest,$item); 61 $this->workChatMessage($latest,$item);
57 } 62 }
58 return true; 63 return true;