diff --git a/OrderScheduling.xcworkspace/xcuserdata/zd.xcuserdatad/UserInterfaceState.xcuserstate b/OrderScheduling.xcworkspace/xcuserdata/zd.xcuserdatad/UserInterfaceState.xcuserstate
index e5bb83f..7f78341 100644
Binary files a/OrderScheduling.xcworkspace/xcuserdata/zd.xcuserdatad/UserInterfaceState.xcuserstate and b/OrderScheduling.xcworkspace/xcuserdata/zd.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/OrderScheduling.xcworkspace/xcuserdata/zd.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/OrderScheduling.xcworkspace/xcuserdata/zd.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
index d34398d..9bce785 100644
--- a/OrderScheduling.xcworkspace/xcuserdata/zd.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+++ b/OrderScheduling.xcworkspace/xcuserdata/zd.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -656,22 +656,6 @@
landmarkType = "7">
-
-
-
-
: Decodable {
typealias data = T
- var code : Int
+ var code : Int?
var msg : String?
var data : T?
- var time : Int
- var success : Bool
+ var time : Int?
+ var success : Bool?
}
class LoginDataModel : Decodable {
diff --git a/OrderScheduling/Main/Initial.swift b/OrderScheduling/Main/Initial.swift
index 52597d5..0b9f1e6 100644
--- a/OrderScheduling/Main/Initial.swift
+++ b/OrderScheduling/Main/Initial.swift
@@ -103,6 +103,10 @@ extension Initial : DDAlamofireDelegate {
DispatchQueue.main.async {
UIApplication.shared.dd_keyWindow.dd_makeToast(msg)
}
+ }else if let data = response.data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers),let dic = json as? Dictionary,let msg = dic["error"] as? String {
+ DispatchQueue.main.async {
+ UIApplication.shared.dd_keyWindow.dd_makeToast(msg)
+ }
}else if let error = response.error {
DispatchQueue.main.async {
UIApplication.shared.dd_keyWindow.dd_makeToast(error.errorDescription)
diff --git a/OrderScheduling/Mine/ViewController/NotificationSetUpController.swift b/OrderScheduling/Mine/ViewController/NotificationSetUpController.swift
index fb68388..c29cde9 100644
--- a/OrderScheduling/Mine/ViewController/NotificationSetUpController.swift
+++ b/OrderScheduling/Mine/ViewController/NotificationSetUpController.swift
@@ -79,6 +79,7 @@ extension NotificationSetUpController : UITableViewDelegate,UITableViewDataSourc
public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = DDView()
+ view.backgroundColor = .white
let label = DDLabel.dd_init(withText: "", font: .mediumFont(auto(13)), textColor: .hex("000000").alpha(0.3))
view.addSubview(label)
label.snp.makeConstraints { make in
@@ -105,6 +106,7 @@ extension NotificationSetUpController : UITableViewDelegate,UITableViewDataSourc
public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return auto(30)
}
+
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if indexPath.section == 0 {
NOTIAUTHTOOL.openSetting()
@@ -162,6 +164,11 @@ open class NotificationSetUpView : DDView {
tableView.backgroundColor = .white
tableView.separatorStyle = .none
+ if #available(iOS 15.0, *) {
+ tableView.sectionHeaderTopPadding = 0
+ } else {
+ // Fallback on earlier versions
+ }
addSubview(tableView)
tableView.snp.makeConstraints { make in
make.edges.equalToSuperview()