|
@@ -28,7 +28,7 @@
|
|
|
checkMaxValue("AcMaxChargingCurrent");
|
|
|
checkMaxValue("MaxChargingDuration");
|
|
|
checkValue("StopChargingByButton");
|
|
|
- if(substr($_POST['ModelName'],0,1)=="A" && $_POST['MaxChargingCurrent']<6){
|
|
|
+ if(substr($_POST['ModelName'],0,1)=="A" && $_POST['MaxChargingCurrent']<6 && $_POST['MaxChargingCurrent']!=0){
|
|
|
$jsone['result'] = "Fail";
|
|
|
$jsone['message'] = "MaxChargingCurrent must > 6";
|
|
|
echo json_encode($jsone);
|