正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -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 | ]; |
-
请 注册 或 登录 后发表评论