Commit 3acdf00c authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

appdelegate taskAlertView

parent db97190e
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
@interface AppDelegate: UIResponder<UIApplicationDelegate, UnityFrameworkListener, NativeCallsProtocol> @interface AppDelegate: UIResponder<UIApplicationDelegate, UnityFrameworkListener, NativeCallsProtocol>
@property (nonatomic, assign) bool showTask;
@property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) UIWindow *window;
@property (nonatomic, copy) NSString *payPageName; @property (nonatomic, copy) NSString *payPageName;
......
...@@ -145,6 +145,12 @@ NSDictionary* appLaunchOpts; ...@@ -145,6 +145,12 @@ NSDictionary* appLaunchOpts;
//领金币 //领金币
- (void)ios_getCoin { - (void)ios_getCoin {
if (_showTask == YES) {
return;;
}
_showTask = YES;
[[CGNetworkTools shared] getWithAction:getSignInList parameters:@{} success:^(id _Nonnull response) { [[CGNetworkTools shared] getWithAction:getSignInList parameters:@{} success:^(id _Nonnull response) {
NSDictionary * signDic = [[response objectForKey:@"result"] objectForKey:@"data"]; NSDictionary * signDic = [[response objectForKey:@"result"] objectForKey:@"data"];
...@@ -169,6 +175,7 @@ NSDictionary* appLaunchOpts; ...@@ -169,6 +175,7 @@ NSDictionary* appLaunchOpts;
[tasks addObject:model]; [tasks addObject:model];
} }
self.showTask = NO;
GYTaskAlertView * task = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([GYTaskAlertView class]) owner:self options:nil].firstObject; GYTaskAlertView * task = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([GYTaskAlertView class]) owner:self options:nil].firstObject;
task.frame = [[self ufw] appController].window.bounds; task.frame = [[self ufw] appController].window.bounds;
task.model = model; task.model = model;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment