作者 lyh

gx脚本锚文本数量

@@ -53,7 +53,7 @@ class lyhDemo extends Command @@ -53,7 +53,7 @@ class lyhDemo extends Command
53 $v6WeekModel = new V6WeeklyReport(); 53 $v6WeekModel = new V6WeeklyReport();
54 foreach ($projectArr as $item){ 54 foreach ($projectArr as $item){
55 $projectModel = new Project(); 55 $projectModel = new Project();
56 - $latest = $v6WeekModel->formatQuery(['project_id'=>$item])->orderBy('id', 'desc')->first()->toArray(); 56 + $latest = $v6WeekModel->formatQuery(['project_id'=>$item])->orderBy('id', 'desc')->first();
57 $list = $projectModel->read(['delete_status'=>0,'id'=>$item],['id','title','is_weekly_report','main_lang_id']); 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']; 58 $latest['main_lang_id'] = $list['main_lang_id'];
59 $latest['is_weekly_report'] = $list['is_weekly_report']; 59 $latest['is_weekly_report'] = $list['is_weekly_report'];