likang %!s(int64=2) %!d(string=hai) anos
pai
achega
bb666dca53
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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]);
             }