update
This commit is contained in:
Binary file not shown.
@@ -656,22 +656,6 @@
|
|||||||
landmarkType = "7">
|
landmarkType = "7">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</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
|
<BreakpointProxy
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
<BreakpointContent
|
<BreakpointContent
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ import Foundation
|
|||||||
|
|
||||||
class ResponseModel<T:Decodable> : Decodable {
|
class ResponseModel<T:Decodable> : Decodable {
|
||||||
typealias data = T
|
typealias data = T
|
||||||
var code : Int
|
var code : Int?
|
||||||
var msg : String?
|
var msg : String?
|
||||||
var data : T?
|
var data : T?
|
||||||
var time : Int
|
var time : Int?
|
||||||
var success : Bool
|
var success : Bool?
|
||||||
}
|
}
|
||||||
|
|
||||||
class LoginDataModel : Decodable {
|
class LoginDataModel : Decodable {
|
||||||
|
|||||||
@@ -103,6 +103,10 @@ extension Initial : DDAlamofireDelegate {
|
|||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
UIApplication.shared.dd_keyWindow.dd_makeToast(msg)
|
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 {
|
}else if let error = response.error {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
UIApplication.shared.dd_keyWindow.dd_makeToast(error.errorDescription)
|
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? {
|
public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
|
||||||
let view = DDView()
|
let view = DDView()
|
||||||
|
view.backgroundColor = .white
|
||||||
let label = DDLabel.dd_init(withText: "", font: .mediumFont(auto(13)), textColor: .hex("000000").alpha(0.3))
|
let label = DDLabel.dd_init(withText: "", font: .mediumFont(auto(13)), textColor: .hex("000000").alpha(0.3))
|
||||||
view.addSubview(label)
|
view.addSubview(label)
|
||||||
label.snp.makeConstraints { make in
|
label.snp.makeConstraints { make in
|
||||||
@@ -105,6 +106,7 @@ extension NotificationSetUpController : UITableViewDelegate,UITableViewDataSourc
|
|||||||
public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
||||||
return auto(30)
|
return auto(30)
|
||||||
}
|
}
|
||||||
|
|
||||||
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||||
if indexPath.section == 0 {
|
if indexPath.section == 0 {
|
||||||
NOTIAUTHTOOL.openSetting()
|
NOTIAUTHTOOL.openSetting()
|
||||||
@@ -162,6 +164,11 @@ open class NotificationSetUpView : DDView {
|
|||||||
|
|
||||||
tableView.backgroundColor = .white
|
tableView.backgroundColor = .white
|
||||||
tableView.separatorStyle = .none
|
tableView.separatorStyle = .none
|
||||||
|
if #available(iOS 15.0, *) {
|
||||||
|
tableView.sectionHeaderTopPadding = 0
|
||||||
|
} else {
|
||||||
|
// Fallback on earlier versions
|
||||||
|
}
|
||||||
addSubview(tableView)
|
addSubview(tableView)
|
||||||
tableView.snp.makeConstraints { make in
|
tableView.snp.makeConstraints { make in
|
||||||
make.edges.equalToSuperview()
|
make.edges.equalToSuperview()
|
||||||
|
|||||||
Reference in New Issue
Block a user