/** * 初始化新的分流标签 */ protected function initialize() { $this->ipAddress = IpLocator::getClientIp(); $this->timestamp = time(); $this->salt = rand(1, 100); }