diff --git a/controllers/ApiController.php b/controllers/ApiController.php index 5af3f97c..ca285cab 100644 --- a/controllers/ApiController.php +++ b/controllers/ApiController.php @@ -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", @@ -614,7 +614,8 @@ class ApiController extends Controller { ]) ] ])); - @file_get_contents("http://localhost:2305/update-feature?total=" . ListManagement::find()->count()); + @file_get_contents("http://localhost:2305/update-feature?total=" . ListManagement::find()->count()); + } } $logProcessStatus->data = json_encode(["status" => false, "time" => time()]); $logProcessStatus->save();