diff --git a/ShadowsocksX-NG/Subscribe.swift b/ShadowsocksX-NG/Subscribe.swift index c958f9b..6f325b0 100644 --- a/ShadowsocksX-NG/Subscribe.swift +++ b/ShadowsocksX-NG/Subscribe.swift @@ -101,6 +101,7 @@ class Subscribe: NSObject{ } else{ callback("")//give a empty callback + self.pushNotification(title: "请求失败", subtitle: "", info: "发送到\(url)的请求失败,请检查您的网络") // alse push a notification indicate that the profile may not available } } @@ -144,22 +145,24 @@ class Subscribe: NSObject{ let (dupResult, _) = self.profileMgr.isDuplicated(profile: profile) let (existResult, existIndex) = self.profileMgr.isExisted(profile: profile) if dupResult { - return + continue } if existResult { - return self.profileMgr.profiles.replaceSubrange(Range(existIndex.. Bool { return source.subscribeFeed == target.subscribeFeed && source.token == target.token && source.maxCount == target.maxCount