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