|
@@ -25,7 +25,6 @@
|
|
|
#import <UserNotifications/UserNotifications.h>
|
|
|
#endif
|
|
|
|
|
|
-#import "UrlDecode.h"
|
|
|
#import "KSBaseWKWebViewController.h"
|
|
|
#import "UserInfoManager.h"
|
|
|
|
|
@@ -664,7 +663,7 @@ didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
|
|
|
if ([detailUrl containsString:@"linkUrl="]) {
|
|
|
NSString *linkUrl = [[detailUrl componentsSeparatedByString:@"linkUrl="] lastObject];
|
|
|
if (![NSString isEmptyString:linkUrl]) {
|
|
|
- linkUrl = [UrlDecode decodeStringWithString:linkUrl];
|
|
|
+ linkUrl = [linkUrl removeUrlEndcodeString];
|
|
|
// 转成 dic
|
|
|
NSData *jsonData = [linkUrl mj_JSONData];
|
|
|
NSError *error;
|
|
@@ -726,7 +725,7 @@ didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
|
|
|
NSString *webUrl = [dict ks_stringValueForKey:@"url"];
|
|
|
if (![NSString isEmptyString:webUrl]) {
|
|
|
KSBaseWKWebViewController *webCtrl = [[KSBaseWKWebViewController alloc] init];
|
|
|
- webCtrl.url = webUrl;
|
|
|
+ webCtrl.url = [webUrl getUrlEndcodeString];
|
|
|
CustomNavViewController *navCtrl = self.tabBarController.selectedViewController;
|
|
|
[navCtrl pushViewController:webCtrl animated:YES];
|
|
|
}
|
|
@@ -868,7 +867,7 @@ didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
|
|
|
NSString *webUrl = [dict ks_stringValueForKey:@"url"];
|
|
|
if (![NSString isEmptyString:webUrl]) {
|
|
|
KSBaseWKWebViewController *webCtrl = [[KSBaseWKWebViewController alloc] init];
|
|
|
- webCtrl.url = webUrl;
|
|
|
+ webCtrl.url = [webUrl getUrlEndcodeString];
|
|
|
CustomNavViewController *navCtrl = self.tabBarController.selectedViewController;
|
|
|
[navCtrl pushViewController:webCtrl animated:YES];
|
|
|
}
|