소스 검색

app(TermService::class)->get ->getRaw

visuddhinanda 4 달 전
부모
커밋
7a3e5df959
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api-v12/app/Services/AITermService.php

+ 1 - 1
api-v12/app/Services/AITermService.php

@@ -112,7 +112,7 @@ class AITermService
     public function create(string $id)
     {
         // 获取术语
-        $term = app(TermService::class)->get($id);
+        $term = app(TermService::class)->getRaw($id);
         // 全文搜索
         $query = $this->query($term->word);
         $res = json_encode($query, JSON_UNESCAPED_UNICODE);