浏览代码

add strlen

visuddhinanda 2 年之前
父节点
当前提交
b7bd7bff9b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Http/Resources/VocabularyResource.php

+ 1 - 0
app/Http/Resources/VocabularyResource.php

@@ -21,6 +21,7 @@ class VocabularyResource extends JsonResource
         return [
         return [
             "word"=>$this['word'],
             "word"=>$this['word'],
             "count"=> $this['count'],
             "count"=> $this['count'],
+            "strlen"=> $this['strlen'],
             "meaning"=> $dictMeaning->get($this['word'],$request->get("lang","zh-Hans")),
             "meaning"=> $dictMeaning->get($this['word'],$request->get("lang","zh-Hans")),
         ];
         ];
     }
     }