From ac0588b711ffcca49ed7651bb8be6e7a81096c52 Mon Sep 17 00:00:00 2001 From: dongpd Date: Wed, 20 Jul 2022 15:25:14 +0700 Subject: [PATCH] fix bug request update feature unlimited --- controllers/ApiController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();