Update index.php

This commit is contained in:
LoveesYe
2022-07-15 23:46:07 +02:00
committed by GitHub
parent 3846659e74
commit 2c79d56afb

View File

@@ -19,7 +19,7 @@ if(strpos($url, '/common/timestamp') !== false && $method=='POST'){
} }
elseif(strpos($url, '/auth') !== false && $method=='POST'){ elseif(strpos($url, '/auth') !== false && $method=='POST'){
$param = parse_input(); $param = parse_input();
$data = ['nodes'=>10000, 'machine_code'=>$param['machine_code'], 'end_at'=>time()+3600*24*365]; $data = ['nodes'=>10000, 'machine_code'=>$param['machine_code'], 'end_at'=>time()+3600*24*365*10];
echo generate_output($data); echo generate_output($data);
} }
elseif(strpos($url, '/check') !== false && $method=='POST'){ elseif(strpos($url, '/check') !== false && $method=='POST'){