vali 6 years ago
parent
commit
ab2c61e672
1 changed files with 1 additions and 1 deletions
  1. 1 1
      datainf/logic/HttpServerOnlySet.php

+ 1 - 1
datainf/logic/HttpServerOnlySet.php

@@ -708,7 +708,7 @@ class HttpServerOnlySet
     {
     {
         $ret = (new SetinfoModel())->getInfo(1001);
         $ret = (new SetinfoModel())->getInfo(1001);
         if (is_array($ret)) {
         if (is_array($ret)) {
-            $val = trim($ret->infocontent);
+            $val = floatval($ret['infocontent']);
             $this->fanshui = $val;
             $this->fanshui = $val;
             print_r(['反水数据', $ret, $this->fanshui]);
             print_r(['反水数据', $ret, $this->fanshui]);
             return $val;
             return $val;