|
@@ -45,10 +45,13 @@ class KFMessageController extends CatchController
|
|
|
})->orderBy('id', 'desc')
|
|
|
->paginate($request->input('limit', 20));
|
|
|
$gzhIds = $gzhs = $ugs = collect();
|
|
|
- $result->pluck('gzh_ids')->every(function ($item) use ($gzhIds){
|
|
|
+
|
|
|
+ foreach ($result->pluck('gzh_ids') as $item) {
|
|
|
$gzhIds = $gzhIds->merge(explode('#', trim($item, '#')));
|
|
|
- });
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
+ $gzhIds = $gzhIds->diff([''])->unique();
|
|
|
if($gzhIds->isNotEmpty()) {
|
|
|
$gzhs = DB::table('wechat_authorization_infos')
|
|
|
->whereIn('id', $gzhIds)
|