作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !142
@@ -296,7 +296,7 @@ class ProjectUpdate extends Command @@ -296,7 +296,7 @@ class ProjectUpdate extends Command
296 $id = $model->insertGetId([ 296 $id = $model->insertGetId([
297 'project_id' => $project_id, 297 'project_id' => $project_id,
298 'title' => $item['ttile'], 298 'title' => $item['ttile'],
299 - 'intro' => $item['description'] ?? '', 299 + 'intro' => $item['short_description'] ?? '',
300 'content' => $item['content'] ?? '', 300 'content' => $item['content'] ?? '',
301 'category_id' => $category_id, 301 'category_id' => $category_id,
302 'thumb' => isset($gallery[0]) ? Arr::a2s($gallery[0]) : '', 302 'thumb' => isset($gallery[0]) ? Arr::a2s($gallery[0]) : '',
@@ -322,6 +322,8 @@ class ProjectUpdate extends Command @@ -322,6 +322,8 @@ class ProjectUpdate extends Command
322 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; 322 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL;
323 continue; 323 continue;
324 } 324 }
  325 + }else{
  326 + $model->edit(['intro'=>$item['short_description'] ?? ''],['id'=>$project['id']]);
325 } 327 }
326 } 328 }
327 } 329 }
@@ -478,7 +480,7 @@ class ProjectUpdate extends Command @@ -478,7 +480,7 @@ class ProjectUpdate extends Command
478 return $task_id; 480 return $task_id;
479 } 481 }
480 482
481 - $task_list = UpdateLog::where('project_id', 543)->where('status', UpdateLog::STATUS_UN)->orderBy('project_id', 'asc')->orderBy('sort', 'asc')->limit(8)->get(); 483 + $task_list = UpdateLog::where('project_id', 528)->where('status', UpdateLog::STATUS_UN)->orderBy('project_id', 'asc')->orderBy('sort', 'asc')->limit(8)->get();
482 if ($task_list->count() == 0) { 484 if ($task_list->count() == 0) {
483 return false; 485 return false;
484 } 486 }