[Feature][MD310][task-view-990][WEB] WEBUI add wefota upgrade

Change-Id: I66c6e345f16ec8f4ac52f6cd0730b01a33d683e6
diff --git a/lynq/MD310/ap/app/zte_webui/js/com.js b/lynq/MD310/ap/app/zte_webui/js/com.js
index 73e9c0d..de5ca46 100755
--- a/lynq/MD310/ap/app/zte_webui/js/com.js
+++ b/lynq/MD310/ap/app/zte_webui/js/com.js
@@ -4405,6 +4405,22 @@
             }

         }

     }

+    function wefotagetNewVersionState() {

+        return stuffMake(arguments, {}, prepare, deal, null, false);

+        function prepare(values, isPost) {

+            var valueReq = {};

+            valueReq.cmd = "wefota_new_version_state,wefota_current_upgrade_state";

+            valueReq.multi_data = 1;

+            return valueReq;

+        }

+        function deal(paramD) {

+            if (paramD) {

+                return paramD;

+            } else {

+                return errUnknownObj;

+            }

+        }

+    }

     function getMandatory() {

         return stuffMake(arguments, {}, prepare, deal, null, false);

         function prepare(values, isPost) {

@@ -4570,6 +4586,23 @@
             }

         }

     }

+

+    function setWefotaOTAUpdateSetting() {

+        return stuffMake(arguments, {}, prepare, deal, null, true);

+        function prepare(values, isPost) {

+            var valueReq = {};

+            valueReq.goformId = "SetUpgWefotaSetting";

+            return valueReq;

+        }

+        function deal(paramD) {

+            if (paramD && paramD.result == "success") {

+                return paramD;

+            } else {

+                return errUnknownObj;

+            }

+        }

+    }

+

     function getOTAlastCheckTime() {

         return getParams({

             nv: ['dm_last_check_time']

@@ -5537,6 +5570,7 @@
         setOTAUpdateSetting: setOTAUpdateSetting,

         getManualOTAUpdateSetting: getManualOTAUpdateSetting,

         setManualOTAUpdateSetting: setManualOTAUpdateSetting,

+        setWefotaOTAUpdateSetting: setWefotaOTAUpdateSetting,

         getSignalStrength: getSignalStrength,

         getOTAlastCheckTime: getOTAlastCheckTime,

         clearUpdateResult: clearUpdateResult,

@@ -5605,6 +5639,7 @@
         trafficCalibration: trafficCalibration,

         getParams: getParams,

         getNewVersionState: getNewVersionState,

+        wefotagetNewVersionState: wefotagetNewVersionState,

         getUpgradeResult: getUpgradeResult,

         getV4Switch: getV4Switch,

         setV4Switch: setV4Switch,