Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckFarm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
LuckFarm
Commits
3acdf00c
Commit
3acdf00c
authored
Oct 23, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appdelegate taskAlertView
parent
db97190e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
AppDelegate.h
GYDemo/GYDemo/AppDelegate.h
+2
-0
AppDelegate.mm
GYDemo/GYDemo/AppDelegate.mm
+7
-0
No files found.
GYDemo/GYDemo/AppDelegate.h
View file @
3acdf00c
...
@@ -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
;
...
...
GYDemo/GYDemo/AppDelegate.mm
View file @
3acdf00c
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment