FengR 2 달 전
부모
커밋
3fd3350b78
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/JsonRpc/PublicRpcService.php

+ 1 - 1
app/JsonRpc/PublicRpcService.php

@@ -4425,7 +4425,7 @@ class PublicRpcService implements PublicRpcServiceInterface
         if(isset($data['chat_id']) && !empty($data['chat_id'])){
             $where['chat_id'] = $data['chat_id'];
         }
-        $template_draftbox = TemplateDraftbox::where($where)->get()->all();
+        $template_draftbox = TemplateDraftbox::where($where)->first();
         if(empty($template_draftbox)){
             return Result::error('草稿模板不存在!');
         }