         if network.reachabilityManager?.networkReachabilityStatus == .notReachable {
             RGToast.shared.toast(message: "当前无网络")
         } else {
-            if showProgress == true {
-                RGNetwork.showProgress()
+            if showIndicator == true {
+                RGNetwork.showIndicator()
             }
 
             let requestString = RGNetwork.requestURL(urlString, parameters: parameters)

            hud.label.text = text
        }
    }

    private static func hideProgress() {
        DispatchQueue.main.async {
            guard let window = UIApplication.shared.keyWindow else { return }
            MBProgressHUD.hide(for: window, animated: true)
        }
    }
}


                                        options: JSONSerialization.ReadingOptions.allowFragments) as! [String: Any]
                    guard let jsonString = String(data: data, encoding: .utf8) else {
                        print("RGNetwork delete request get JSON string failed.")
                        RGNetwork.hideIndicator()
                        return
                    }
                    success(json, requestString, jsonString, "\(httpStatusCode)")
                    RGNetwork.hideIndicator()
                } catch let error as NSError {
                    fail(error, requestString)
                    RGNetwork.hideIndicator()
                }
            } catch let error as NSError {
                fail(error, requestString)
                RGNetwork.hideIndicator()
            }
        }
    }


