where('RegisterIP', $ip) ->select('UserID') ->count(); Log::info('网页注册IP_' . $ip . ' _注册数量_ ' . $ipRegisterCount); if ($ipRegisterCount > 2) { return false; } return true; } }