ip
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-09-30 17:32:46
|
||||
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
||||
* @LastEditTime: 2022-07-30 13:46:22
|
||||
* @LastEditTime: 2022-09-13 21:14:24
|
||||
*/
|
||||
|
||||
namespace fastphp\base;
|
||||
@@ -46,9 +46,9 @@ class Controller
|
||||
$ip = getIp();
|
||||
$ip_limit = trim(file_get_contents('/var/www/ip/ip'));
|
||||
// if ((strpos($ip_limit, $ip) == false)&&$ip!=$ip_limit&&$getPayload['OperaterID']<100000) {
|
||||
if ((strpos($ip_limit, $ip) == false)&&$getPayload['OperaterID']<100000) {
|
||||
die;
|
||||
}
|
||||
// if ((strpos($ip_limit, $ip) == false)&&$getPayload['OperaterID']<100000) {
|
||||
// die;
|
||||
// }
|
||||
} else {
|
||||
die;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user