fix bug stop auto check logs

This commit is contained in:
dongpd 2022-07-15 10:30:32 +07:00
parent 4a08ad05df
commit 7545b93ee7
2 changed files with 2 additions and 1 deletions

View File

@ -307,6 +307,7 @@ class ConfigController extends Controller {
} catch (\Exception $exc) { } catch (\Exception $exc) {
} }
\app\models\SyncUrl::deleteAll(['key_config' => 'log_process_status']);
$server_ip = \app\models\SyncUrl::findOne(['key_config' => 'server_api']); $server_ip = \app\models\SyncUrl::findOne(['key_config' => 'server_api']);
$ip = "https://dev-dc.beetai.com"; $ip = "https://dev-dc.beetai.com";
if ($server_ip) if ($server_ip)

View File

@ -433,7 +433,7 @@ function _syncFromServerForm(e) {
$("#filter-from-server").select2({ $("#filter-from-server").select2({
placeholder: $("input[name='TIM_KIEM_THEO_ID_HOAC_TEN']").val() placeholder: $("input[name='TIM_KIEM_THEO_ID_HOAC_TEN']").val()
}); });
if (parseInt($("#totalDevice").html()) != parseInt($("#totalCloud").html())) if ($("#totalDevice").html() === $("#totalCloud").html())
$("#btnCheckLossImage").addClass("hidden"); $("#btnCheckLossImage").addClass("hidden");
}, },
error: function (jqXHR, textStatus, errorThrown) { error: function (jqXHR, textStatus, errorThrown) {