likang 2 년 전
부모
커밋
bb666dca53
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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]);
             }