update
This commit is contained in:
@@ -13,6 +13,16 @@ open class GroupData {
|
||||
public static let `default` = GroupData()
|
||||
let groudUserDefault = UserDefaults(suiteName: GROUPID)
|
||||
|
||||
// 判断新推送是不是新订单
|
||||
func isOrderPushNotification(userInfo:[AnyHashable:Any]?) -> Bool {
|
||||
if let userInfo {
|
||||
if let aps = userInfo[pushNoti_aps_key] as? [String:Any], let dict = (aps[pushNoti_alert_key] as? Dictionary<String, Any>), (dict[pushNoti_title_key] as? String) == pushNoti_newOrder_key {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// 不需要记录
|
||||
public var bestAttemptContentUserInfo : [AnyHashable:Any]? {
|
||||
return groudUserDefault?.object(forKey: bestAttemptContentUserInfo_key) as? [AnyHashable:Any]
|
||||
|
||||
Reference in New Issue
Block a user