update
This commit is contained in:
Binary file not shown.
@@ -656,22 +656,6 @@
|
||||
landmarkType = "7">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
uuid = "408F05CB-F217-4CEC-B810-196A4D68A42B"
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "OrderScheduling/Main/Initial.swift"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "111"
|
||||
endingLineNumber = "111"
|
||||
landmarkName = "errorCodeHandler(response:)"
|
||||
landmarkType = "7">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
|
||||
@@ -9,11 +9,11 @@ import Foundation
|
||||
|
||||
class ResponseModel<T:Decodable> : 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 {
|
||||
|
||||
@@ -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<String, Any>,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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user