Browse Source

remark code update

master
filesite 4 days ago
parent
commit
46342ee6ec
  1. 4
      lib/DirScanner.php

4
lib/DirScanner.php

@ -540,14 +540,14 @@ Class DirScanner {
return $this->nginxSecret; return $this->nginxSecret;
} }
//设置Nginx防盗链密钥 //设置用户IP
public function setUserIp($userIp) { public function setUserIp($userIp) {
if (!empty($userIp) && is_string($userIp)) { if (!empty($userIp) && is_string($userIp)) {
$this->userIp = $userIp; $this->userIp = $userIp;
} }
} }
//获取Nginx防盗链密钥 //获取用户IP
public function getUserIp() { public function getUserIp() {
return $this->userIp; return $this->userIp;
} }

Loading…
Cancel
Save