ソースを参照

:test_tube: 显示case

visuddhinanda 3 年 前
コミット
b243c03cbd
1 ファイル変更9 行追加8 行削除
  1. 9 8
      app/Http/Controllers/ExportWbwController.php

+ 9 - 8
app/Http/Controllers/ExportWbwController.php

@@ -57,14 +57,15 @@ class ExportWbwController extends Controller
                     $style = $word->style->__toString();
                     $style = $word->style->__toString();
                     if($type !== '.ctl.' && $style !== 'note'){
                     if($type !== '.ctl.' && $style !== 'note'){
                         $sent['data'][]=[
                         $sent['data'][]=[
-                        'pali'=>$word->real->__toString(),
-                    'mean' => $word->mean->__toString(),
-                    'type' => ltrim($type,'.'),
-                    'grammar' => ltrim(str_replace('$.',',',$word->gramma->__toString()),'.') ,
-                    'parent' => $word->parent->__toString(),
-                    'factors' => $word->org->__toString(),
-                    'factormeaning' => $word->om->__toString()
-                    ];
+                            'pali'=>$word->real->__toString(),
+                            'mean' => $word->mean->__toString(),
+                            'type' => ltrim($type,'.'),
+                            'grammar' => ltrim(str_replace('$.',',',$word->gramma->__toString()),'.') ,
+                            'case' => ltrim(str_replace(['$.','#.'],[' ',' '],$word->case->__toString()),'.') ,
+                            'parent' => $word->parent->__toString(),
+                            'factors' => $word->org->__toString(),
+                            'factormeaning' => $word->om->__toString()
+                        ];
                     }
                     }
 
 
                 }
                 }