[Bugfix][R305][bug-view-1539][fota] During local upgrade, there is a probability of returning a loading failure, but in reality, it has already succeeded

Change-Id: I8d41c9d084eac161e0eae776f3cee54adfffb7de
diff --git a/lynq/CPE_COMMON/ap/app/cgi/cgi.c b/lynq/CPE_COMMON/ap/app/cgi/cgi.c
index a7c86f3..3d2b076 100755
--- a/lynq/CPE_COMMON/ap/app/cgi/cgi.c
+++ b/lynq/CPE_COMMON/ap/app/cgi/cgi.c
@@ -1,3 +1,4 @@
+

 #include <stdio.h>

 #include <stdlib.h>

 #include <string.h>

@@ -289,6 +290,7 @@
     int upgradeStatus, result;

 

     system("fota_upi -u verify > /dev/null 2>&1");

+    sleep(1);

     result = fota_get_update_status(&upgradeStatus);

     if(result < 0)

     {

@@ -303,7 +305,6 @@
     else

     {

         print_json_response(1, "File verification successful, start updating...");

-        sleep(1);

         system("fota_upi -u recovery > /dev/null 2>&1 &");

     }

 }