Update 'controllers/ApiController.php'

fix bug regenfeature
This commit is contained in:
dongpd 2021-05-19 10:31:09 +00:00
parent 2c722a1ee9
commit 9ceb3567c9

View File

@ -486,9 +486,14 @@ class ApiController extends Controller {
'data' => "false"
]);
} else {
if ($this->check512())
if ($this->check512()) {
$currentCache = json_decode(file_get_contents("http://localhost:2305/current-cache"), true);
if ($currentCache['n_128'] == $currentCache['n_512']) {
$updating->data = "true";
else
} else {
$updating->data = "false";
}
} else
$updating->data = "false";
$updating->save();
}