fix bug request update feature unlimited

This commit is contained in:
dongpd 2022-07-20 15:25:14 +07:00
parent 3ecfd63b68
commit ac0588b711

View File

@ -603,7 +603,7 @@ class ApiController extends Controller {
];
}
}
if (count($infomation) > 0 || count($fault_information) > 0)
if (count($infomation) > 0 || count($fault_information) > 0) {
file_get_contents($ip . "/api/model/set_log_model", false, stream_context_create([
'http' => [
'header' => "Content-Type: application/json",
@ -616,6 +616,7 @@ class ApiController extends Controller {
]));
@file_get_contents("http://localhost:2305/update-feature?total=" . ListManagement::find()->count());
}
}
$logProcessStatus->data = json_encode(["status" => false, "time" => time()]);
$logProcessStatus->save();
return ["data" => "check logs"];