作者 刘锟

项目升级

@@ -76,6 +76,9 @@ class ProjectUpdate extends Command @@ -76,6 +76,9 @@ class ProjectUpdate extends Command
76 76
77 $model = new Keyword(); 77 $model = new Keyword();
78 foreach ($tags as $tag) { 78 foreach ($tags as $tag) {
  79 + if(strlen($tag) > 50){
  80 + continue;
  81 + }
79 $keyword = $model->read(['title' => $tag], 'id'); 82 $keyword = $model->read(['title' => $tag], 'id');
80 if (!$keyword) { 83 if (!$keyword) {
81 $id = $model->addReturnId([ 84 $id = $model->addReturnId([