修改聚合订单音频的键值

This commit is contained in:
DDIsFriend
2024-01-16 14:16:56 +08:00
parent 6e2cf37e8c
commit f973b8745a
5 changed files with 7 additions and 7 deletions

View File

@@ -119,7 +119,7 @@ open class Tool {
let juheVehcileName = userInfo?[pushNoti_juheVehcileName_key] as? String let juheVehcileName = userInfo?[pushNoti_juheVehcileName_key] as? String
var auidoUrl : URL? var auidoUrl : URL?
if juheVehcileName?.isEmpty == false { if juheVehcileName?.isEmpty == false {
auidoUrl = URL(string: Bundle.main.path(forResource: juheNewOrderAudio_key, ofType: nil) ?? "") auidoUrl = URL(string: Bundle.main.path(forResource: newJuheOrderAudio_key, ofType: nil) ?? "")
}else{ }else{
auidoUrl = URL(string: Bundle.main.path(forResource: newOrderAudio_key, ofType: nil) ?? "") auidoUrl = URL(string: Bundle.main.path(forResource: newOrderAudio_key, ofType: nil) ?? "")
} }

View File

@@ -35,7 +35,7 @@ public let pushNoti_confirmButtonText_key = "confirmButtonText"
public let pushNoti_cancelButtonText_key = "cancelButtonText" public let pushNoti_cancelButtonText_key = "cancelButtonText"
// //
public let juheNewOrderAudio_key = "newJuheOrderAudio.wav" public let newJuheOrderAudio_key = "newJuheOrderAudio.wav"
public let newOrderAudio_key = "newOrderAudio.wav" public let newOrderAudio_key = "newOrderAudio.wav"

View File

@@ -43,7 +43,7 @@ class NotificationService: UNNotificationServiceExtension {
let juheVehcileName = userInfo[pushNoti_juheVehcileName_key] as? String let juheVehcileName = userInfo[pushNoti_juheVehcileName_key] as? String
if juheVehcileName?.isEmpty == false { if juheVehcileName?.isEmpty == false {
sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: juheNewOrderAudio_key)) sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: newJuheOrderAudio_key))
}else{ }else{
sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: newOrderAudio_key)) sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: newOrderAudio_key))
} }
@@ -98,7 +98,7 @@ class NotificationService: UNNotificationServiceExtension {
let juheVehcileName = userInfo[pushNoti_juheVehcileName_key] as? String let juheVehcileName = userInfo[pushNoti_juheVehcileName_key] as? String
if juheVehcileName?.isEmpty == false { if juheVehcileName?.isEmpty == false {
sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: juheNewOrderAudio_key)) sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: newJuheOrderAudio_key))
}else{ }else{
sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: newOrderAudio_key)) sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: newOrderAudio_key))
} }

View File

@@ -5,17 +5,17 @@
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000189"> <testcase classname="fastlane.lanes" name="0: default_platform" time="0.000177">
</testcase> </testcase>
<testcase classname="fastlane.lanes" name="1: gym" time="73.272336"> <testcase classname="fastlane.lanes" name="1: gym" time="75.197299">
</testcase> </testcase>
<testcase classname="fastlane.lanes" name="2: pgyer" time="29.072191"> <testcase classname="fastlane.lanes" name="2: pgyer" time="11.711155">
</testcase> </testcase>