FengR 2 luni în urmă
părinte
comite
3fd3350b78
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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('草稿模板不存在!');
         }