暂时解决iOS17.0的崩溃问题

This commit is contained in:
DDIsFriend
2024-01-03 18:19:07 +08:00
parent 1d8728dd2c
commit 91b99671f3
5 changed files with 30 additions and 5 deletions

View File

@@ -5866,5 +5866,21 @@
</Locations> </Locations>
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "FF83AB95-BA85-479A-A257-454418B081B5"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Global/GroupData/GroupData.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "97"
endingLineNumber = "97"
landmarkName = "newMessageSound"
landmarkType = "24">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints> </Breakpoints>
</Bucket> </Bucket>

View File

@@ -92,7 +92,16 @@ open class GroupData {
// //
public var newMessageSound : Bool { public var newMessageSound : Bool {
return (groudUserDefault?.object(forKey: newMessageSound_key) as? Bool) ?? false
if let value = groudUserDefault?.object(forKey: newMessageSound_key) as? Bool {
return value
}
///
if #available(iOS 17.0, *) {
return false
}
return true
} }
func setNewMessageSound(newMessageSound:Bool?) { func setNewMessageSound(newMessageSound:Bool?) {

View File

@@ -69,7 +69,7 @@ public struct OrderListParameters : Encodable {
case xuni = "虚拟类" case xuni = "虚拟类"
case yiliao = "医疗类" case yiliao = "医疗类"
case zixun = "400咨询类" case zixun = "400咨询类"
case huicheng = "" case huicheng = ""
case none = "" case none = ""
} }

View File

@@ -5,17 +5,17 @@
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000229"> <testcase classname="fastlane.lanes" name="0: default_platform" time="0.000166">
</testcase> </testcase>
<testcase classname="fastlane.lanes" name="1: gym" time="87.600581"> <testcase classname="fastlane.lanes" name="1: gym" time="66.698529">
</testcase> </testcase>
<testcase classname="fastlane.lanes" name="2: pgyer" time="10.742434"> <testcase classname="fastlane.lanes" name="2: pgyer" time="12.617885">
</testcase> </testcase>