作者 lyh

gx脚本更新路由

@@ -90,6 +90,9 @@ class UpdateBuildConfiguration extends Command @@ -90,6 +90,9 @@ class UpdateBuildConfiguration extends Command
90 if(empty($v['describe'])){ 90 if(empty($v['describe'])){
91 continue; 91 continue;
92 } 92 }
  93 + if(empty($v['describe'][0]['text'])){
  94 + continue;
  95 + }
93 if(isset($v['describe'][0]['title']) && ($v['describe'][0]['title'] == null)){ 96 if(isset($v['describe'][0]['title']) && ($v['describe'][0]['title'] == null)){
94 $v['describe'][0]['title'] = ''; 97 $v['describe'][0]['title'] = '';
95 } 98 }
@@ -105,7 +108,7 @@ class UpdateBuildConfiguration extends Command @@ -105,7 +108,7 @@ class UpdateBuildConfiguration extends Command
105 'text_type'=>1, 108 'text_type'=>1,
106 'title'=>'', 109 'title'=>'',
107 'sort'=>1, 110 'sort'=>1,
108 - 'content'=>json_encode(['content'=>$v['describe'][0]['text'],'title'=>$v['describe'][0]['title'] ?? ''],true), 111 + 'content'=>json_encode(['content'=>$v['describe'][0]['text'] ?? '','title'=>$v['describe'][0]['title'] ?? ''],true),
109 'created_at'=>date('Y-m-d H:i:s'), 112 'created_at'=>date('Y-m-d H:i:s'),
110 'updated_at'=>date('Y-m-d H:i:s') 113 'updated_at'=>date('Y-m-d H:i:s')
111 ]; 114 ];