[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/R307L/ap/app/cgi/cgi.c b/lynq/R307L/ap/app/cgi/cgi.c
index a7c86f3..f8d831b 100755
--- a/lynq/R307L/ap/app/cgi/cgi.c
+++ b/lynq/R307L/ap/app/cgi/cgi.c
@@ -289,6 +289,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 +304,6 @@
     else

     {

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

-        sleep(1);

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

     }

 }