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('草稿模板不存在!');
         }