diff --git a/system.html b/system.html
index b078101..44bd0a0 100644
--- a/system.html
+++ b/system.html
@@ -219,8 +219,14 @@
type: "GET",
url: url,
success: function (res) {
- alert('upgrade success!device reboot!')
- window.location.reload(true)
+ if (res.success) {
+ alert('upgrade success!device reboot!')
+ window.location.reload(true)
+ }
+ else {
+ alert('upgrade failed!upgrade pack invalid!')
+ window.location.reload(true)
+ }
},
error: function () {
alert('upgrade failed!upgrade pack invalid!')