tongshanglei пре 2 година
родитељ
комит
9ec9c21837
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      catch/device/controller/Station.php

+ 1 - 1
catch/device/controller/Station.php

@@ -210,7 +210,7 @@ class Station extends CatchController
         $count = $this->stationModel->limit(100)->insertAll($data);
         if ($count) {
 
-            return CatchResponse::success('共' . $total . '条数据,成功' . $count . '条,失败' . $total-$count . '条');
+            return CatchResponse::success('共' . $total . '条数据,成功' . $count . '条,失败' . ($total-$count) . '条');
 
         }
         return CatchResponse::success(['error' => true, 'msg' => '导入失败']);