likang 2 anni fa
parent
commit
bb666dca53
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      catch/tag_history/controller/TagHistory.php

+ 3 - 0
catch/tag_history/controller/TagHistory.php

@@ -110,6 +110,9 @@ class TagHistory extends CatchController
                 $list[$key]['temperature'] = 39;
                 $list[$key]['step'] = 2100;
                 $das = Db::name('config')->where('key', 'upload')->find();
+                if (empty($das['value'])) {
+                    $das['value'] = 2100;
+                }
                 $list[$key]['step'] = $das['value'];
                 Db::name('config')->where('key', 'upload')->update(['value' => $das['value'] + 1]);
             }