优化代码

main
gzydong 2021-09-12 10:41:58 +08:00
parent 99a2ddd8fe
commit f9891fbfef
1 changed files with 2 additions and 2 deletions

View File

@ -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 = [];