Explorar el Código

2021-03-18 / ct_chen

Actions:
1. Webservice fix bug

Files:
1. EVSE/rootfs/var/www/set_backend.php
ct_chen hace 4 años
padre
commit
5e081e3f2a
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      EVSE/rootfs/var/www/set_backend.php

+ 4 - 3
EVSE/rootfs/var/www/set_backend.php

@@ -149,9 +149,10 @@ img {
 //						"&OcppConnStatus=" + document.getElementById("OcppConnStatus").value+
 						"&OcppServerURL=" + document.getElementById("OcppServerURL").value+
 						"&ChargeBoxId=" + document.getElementById("ChargeBoxId").value+
-						"&chargePointVendor=" + document.getElementById("chargePointVendor").value+
-						"&isEnableLocalPowerSharging=" + document.getElementById("isEnableLocalPowerSharging").value;
-			
+						"&chargePointVendor=" + document.getElementById("chargePointVendor").value;
+<?php if(substr($ModelName,0,2)=="AX"){?>
+				data += "&isEnableLocalPowerSharging=" + document.getElementById("isEnableLocalPowerSharging").value;
+<?php } ?>
 			// POST 請求必須設置表頭在 open() 下面,send() 上面
 			request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
 			request.send(data);