Update 'controllers/ApiController.php'
fix bug regenfeature
This commit is contained in:
@@ -486,9 +486,14 @@ class ApiController extends Controller {
|
|||||||
'data' => "false"
|
'data' => "false"
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
if ($this->check512())
|
if ($this->check512()) {
|
||||||
$updating->data = "true";
|
$currentCache = json_decode(file_get_contents("http://localhost:2305/current-cache"), true);
|
||||||
else
|
if ($currentCache['n_128'] == $currentCache['n_512']) {
|
||||||
|
$updating->data = "true";
|
||||||
|
} else {
|
||||||
|
$updating->data = "false";
|
||||||
|
}
|
||||||
|
} else
|
||||||
$updating->data = "false";
|
$updating->data = "false";
|
||||||
$updating->save();
|
$updating->save();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user