Browse Source

2021-03-18 / ct_chen

Actions:
1. Webservice fix bug

Files:
1. EVSE/rootfs/var/www/set_backend.php
ct_chen 4 năm trước cách đây
mục cha
commit
5e081e3f2a
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  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);