likang 2 years ago
parent
commit
bb666dca53
1 changed files with 3 additions and 0 deletions
  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]);
             }