FengR 2 tháng trước cách đây
mục cha
commit
3fd3350b78
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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('草稿模板不存在!');
         }