|
@@ -56,16 +56,28 @@ JSExportAs(backUrl, -(void)jsBackUrl:(NSString*)str);
|
|
|
BOOL _isMoving;
|
|
|
|
|
|
NSInteger pushIndex;
|
|
|
+
|
|
|
+ NSInteger _timeTick;
|
|
|
+ NSInteger _time;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
@property(nonatomic, strong)UIWebView *webView;
|
|
|
+
|
|
|
+//@property (weak, nonatomic) IBOutlet UIWebView *webView;
|
|
|
+
|
|
|
+
|
|
|
@property(nonatomic, assign)BOOL updateNotify;
|
|
|
@property(nonatomic, assign)BOOL afterOpenPushMessage;
|
|
|
@property(nonatomic, strong)NoNetView *noNetView;
|
|
|
@property(nonatomic, strong)NSURLRequest *errRequest;
|
|
|
@property(nonatomic, strong)NSString *signOutContent;
|
|
|
|
|
|
+
|
|
|
+@property (nonatomic, strong)NSMutableDictionary *notiDict;
|
|
|
+@property (nonatomic,weak)NSTimer *timer;
|
|
|
+
|
|
|
@end
|
|
|
|
|
|
NSString *const kInitVector_0 = @"1389461544135476";
|
|
@@ -110,7 +122,45 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
[self clearWeb];
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ //新增监听
|
|
|
+ self.notiDict = [[NSMutableDictionary alloc]initWithDictionary:[[NSUserDefaults standardUserDefaults] objectForKey:@"NotiDict"]];
|
|
|
+ if(self.notiDict.count) {
|
|
|
+ self.timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timeFireMethod) userInfo:nil repeats:YES];
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
+-(void)timeFireMethod{
|
|
|
+ _timeTick++;
|
|
|
+ NSLog(@"定时器");
|
|
|
+ if(self.webView) {
|
|
|
+ NSString * urlStr = [NSString stringWithFormat:@"%@",self.notiDict[@"url"]];
|
|
|
+
|
|
|
+ if (urlStr) {
|
|
|
+ [[LXViewControllerManager shareViewControllerManager] showHudText:nil];
|
|
|
+ self.afterOpenPushMessage = YES;
|
|
|
+ [self performSelector:@selector(requestWebTime:) withObject:self.notiDict afterDelay:1];
|
|
|
+
|
|
|
+ [self.timer invalidate];
|
|
|
+ self.timer = nil;
|
|
|
+ _timeTick = 0;
|
|
|
+ [[NSUserDefaults standardUserDefaults] removeObjectForKey:@"notiDict"];
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_timeTick == 60) {
|
|
|
+ [self.timer invalidate];
|
|
|
+ self.timer = nil;
|
|
|
+ _timeTick = 0;
|
|
|
+ [[NSUserDefaults standardUserDefaults] removeObjectForKey:@"notiDict"];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
-(void)moveViewWithX:(float)x
|
|
|
{
|