From a926b50fb8fd8995cdb5c10ec07dafcff888183b Mon Sep 17 00:00:00 2001
From: liugl <liugl@sinata.cn>
Date: 星期五, 07 八月 2020 16:38:23 +0800
Subject: [PATCH] 8.7

---
 app/src/main/java/com/okgoincar/netUtls/NetKit.kt |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/app/src/main/java/com/okgoincar/netUtls/NetKit.kt b/app/src/main/java/com/okgoincar/netUtls/NetKit.kt
index 023a983..b219b71 100644
--- a/app/src/main/java/com/okgoincar/netUtls/NetKit.kt
+++ b/app/src/main/java/com/okgoincar/netUtls/NetKit.kt
@@ -51,6 +51,12 @@
             clickAction(responseString)
         }
 
+        override fun onError(code: Int, msg: String?, resposeString: String?) {
+            super.onError(code, msg, resposeString)
+            if (showDialog)
+                dismissDialog()
+        }
+
     })
 }
 
@@ -69,6 +75,11 @@
         override fun success(responseString: String?) {
             dismissDialog()
             clickAction(responseString)
+        }
+
+        override fun onError(code: Int, msg: String?, resposeString: String?) {
+            super.onError(code, msg, resposeString)
+            dismissDialog()
         }
     })
 }
@@ -186,6 +197,12 @@
             clickAction(responseString)
         }
 
+        override fun onError(code: Int, msg: String?, resposeString: String?) {
+            super.onError(code, msg, resposeString)
+            if (showDialog)
+                dismissDialog()
+        }
+
     })
 }
 
@@ -209,6 +226,7 @@
         }
 
         override fun onError(code: Int, msg: String?, resposeString: String?) {
+            dismissDialog()
             clickActionError(resposeString)
         }
     })
@@ -236,7 +254,7 @@
 
         override fun onError(code: Int, msg: String?, resposeString: String?) {
             super.onError(code, msg, resposeString)
-
+            dismissDialog()
             clickActionError(msg)
         }
     })
@@ -258,6 +276,10 @@
         override fun success(responseString: String?) {
             clickAction(responseString)
         }
+
+        override fun onError(code: Int, msg: String?, resposeString: String?) {
+            super.onError(code, msg, resposeString)
+        }
     })
 }
 

--
Gitblit v1.7.1