diff --git a/module/misc/control.php b/module/misc/control.php index f9d4620820..548669a263 100644 --- a/module/misc/control.php +++ b/module/misc/control.php @@ -19,8 +19,8 @@ class misc extends control */ public function ping() { - if(mt_rand(0, 10) == 5) $this->loadModel('setting')->setSN(); - die("
"); + if(mt_rand(0, 1) == 1) $this->loadModel('setting')->setSN(); + die(""); } /** diff --git a/module/setting/model.php b/module/setting/model.php index 74a1d25e94..e88b6f83bc 100644 --- a/module/setting/model.php +++ b/module/setting/model.php @@ -119,7 +119,10 @@ class settingModel extends model { $this->dao->insert(TABLE_CONFIG)->data($item)->exec($autoCompany = false); } - elseif($config->value == '281602d8ff5ee7533eeafd26eda4e776' or $config->value == '9bed3108092c94a0db2b934a46268b4a') + elseif($config->value == '281602d8ff5ee7533eeafd26eda4e776' or + $config->value == '9bed3108092c94a0db2b934a46268b4a' or + $config->value == '8522dd4d76762a49d02261ddbe4ad432' or + $config->value == '13593e340ee2bdffed640d0c4eed8bec') { $this->dao->update(TABLE_CONFIG)->data($item)->where('id')->eq($config->id)->exec($autoCompany = false); } diff --git a/www/js/my.full.js b/www/js/my.full.js index 7387728118..581ea3adf0 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -800,7 +800,7 @@ $(document).ready(function() saveWindowSize(); loadFixedCSS(); $(window).resize(function(){saveWindowSize()}); // When window resized, call it again. - if(needPing) setTimeout('setPing()', 1000 * 60 * 5); // After 5 minutes, begin ping. + if(needPing) setTimeout('setPing()', 1000 * 60); // After 5 minutes, begin ping. if($('#productID')) $('#productID').focus(); if($('#projectID')) $('#projectID').focus(); });