wzh %!s(int64=5) %!d(string=hai) anos
pai
achega
efaaf1d2e8
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      api/application/controllers/Lampcontrol.php

+ 1 - 2
api/application/controllers/Lampcontrol.php

@@ -801,7 +801,6 @@ class Lampcontrol extends Base_Controller {
         $data['increa_char_time']               = $this->input->post('increa_char_time',true) * 60;  // 提升充电时间
 
         $data['balan_char_interval']               = $this->input->post('balan_char_interval',true);  // 均衡充电间隔
-
         $data['temper_compen_coeff']               = $this->input->post('temper_compen_coeff',true);  // 温度补偿系数
         $data['char_lower_limit_temper']           = $this->input->post('char_lower_limit_temper',true);  // 下限温度
         $data['char_upper_limit_temper']           = $this->input->post('char_upper_limit_temper',true);  // 上限温度
@@ -815,7 +814,7 @@ class Lampcontrol extends Base_Controller {
         $lampData = $this->Lamp_model->get_one($where,'projectid,address,number');
         $sendData = '';
         foreach ($data as $k=>$v) {
-            if ($k == 'light_voltage' || $k == 'balan_char_interval' || $k == 'temper_compen_coeff' || $k == 'light_delay_time') {
+            if ($k == 'light_voltage' || $k == 'balan_char_interval' || $k == 'temper_compen_coeff' || $k == 'light_delay_time' || $k == 'system_voltage') {
                 $word = substr('00'.base_convert($v, 10, 16), -2);
             }elseif ($k == 'char_upper_limit_temper' || $k == 'char_lower_limit_temper') {
                 if ($v < 0){