合并分支 'akun' 到 'master'
Akun 查看合并请求 !133
正在显示
1 个修改的文件
包含
0 行增加
和
7 行删除
| @@ -396,13 +396,6 @@ class ProjectUpdate extends Command | @@ -396,13 +396,6 @@ class ProjectUpdate extends Command | ||
| 396 | echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; | 396 | echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; |
| 397 | continue; | 397 | continue; |
| 398 | } | 398 | } |
| 399 | - } else { | ||
| 400 | - $category_id = ''; | ||
| 401 | - if ($api_type == 'news' && ($item['category'] ?? [])) { | ||
| 402 | - $category_arr = $category_model->list(['original_id' => ['in', array_column($item['category'], 'id')]]); | ||
| 403 | - $category_id = $logic->getLastCategory(array_column($category_arr, 'id')); | ||
| 404 | - } | ||
| 405 | - $model->edit(['category_id' => $category_id], ['id' => $news['id']]); | ||
| 406 | } | 399 | } |
| 407 | } | 400 | } |
| 408 | } | 401 | } |
-
请 注册 或 登录 后发表评论