From f9891fbfef44138dbc94dff439b233ad750dac13 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Sun, 12 Sep 2021 10:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/TalkForwardService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Service/TalkForwardService.php b/app/Service/TalkForwardService.php index fde2dfb..9ac019c 100644 --- a/app/Service/TalkForwardService.php +++ b/app/Service/TalkForwardService.php @@ -156,11 +156,11 @@ class TalkForwardService extends BaseService } if (!empty($fileArray)) { - $fileArray = TalkRecordsFile::where('record_id', $fileArray)->get()->keyBy('record_id')->toArray(); + $fileArray = TalkRecordsFile::whereIn('record_id', $fileArray)->get()->keyBy('record_id')->toArray(); } if (!empty($codeArray)) { - $codeArray = TalkRecordsCode::where('record_id', $codeArray)->get()->keyBy('record_id')->toArray(); + $codeArray = TalkRecordsCode::whereIn('record_id', $codeArray)->get()->keyBy('record_id')->toArray(); } $insRecordIds = [];