|
@@ -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);
|