input("per_page", 20)); foreach ($risks as $risk) { $risk->uid_verify = BlackListModel::where('account_type', 'uid')->where( 'account', $risk->phone )->first() ? true : false; $risk->phone_verify = BlackListModel::where('account_type', 'phone')->where( 'account', $risk->phone )->first() ? true : false; $risk->weixin_verify = BlackListModel::where('account_type', 'weixin')->where( 'account', $risk->weixin )->first() ? true : false; $risk->qq_verify = BlackListModel::where('account_type', 'qq')->where( 'account', $risk->qq )->first() ? true : false; } return new RiskListCollection($risks); } }