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
8ce7fcf3
Commit
8ce7fcf3
authored
Nov 16, 2020
by
zhangshuai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.huolea.com:lmi/luckfarm
parents
37c09aa4
f69a3c29
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
44 additions
and
39 deletions
+44
-39
project.pbxproj
GYDemo/GYDemo.xcodeproj/project.pbxproj
+2
-2
GYWithDrawAlertView.h
GYDemo/GYDemo/Alert/GYWithDrawAlertView.h
+2
-0
GYWithDrawAlertView.m
GYDemo/GYDemo/Alert/GYWithDrawAlertView.m
+4
-1
GYWithDrawAlertView.xib
GYDemo/GYDemo/Alert/GYWithDrawAlertView.xib
+1
-6
IOSADManager.m
GYDemo/GYDemo/SCAds/IOSADManager.m
+5
-1
GYWebViewController.m
GYDemo/GYDemo/ViewController/GYWebViewController.m
+20
-3
xcschememanagement.plist
...rdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
+9
-9
xcschememanagement.plist
...rdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
+1
-1
UserInterfaceState.xcuserstate
...cuserdata/mazy.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Breakpoints_v2.xcbkptlist
...ata/mazy.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+0
-16
No files found.
GYDemo/GYDemo.xcodeproj/project.pbxproj
View file @
8ce7fcf3
...
...
@@ -1003,7 +1003,7 @@
CODE_SIGN_ENTITLEMENTS
=
GYDemo/GYDemo.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
12
6
;
CURRENT_PROJECT_VERSION
=
12
7
;
DEVELOPMENT_TEAM
=
XWMRLLSSFL
;
ENABLE_BITCODE
=
NO
;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING
=
NO
;
...
...
@@ -1035,7 +1035,7 @@
CODE_SIGN_ENTITLEMENTS
=
GYDemo/GYDemo.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
12
6
;
CURRENT_PROJECT_VERSION
=
12
7
;
DEVELOPMENT_TEAM
=
XWMRLLSSFL
;
ENABLE_BITCODE
=
NO
;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING
=
NO
;
...
...
GYDemo/GYDemo/Alert/GYWithDrawAlertView.h
View file @
8ce7fcf3
...
...
@@ -14,6 +14,8 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
copy
)
NSString
*
amt
;
-
(
void
)
show
:(
UIView
*
_Nullable
)
superView
;
@property
(
nonatomic
,
copy
)
void
(
^
dismissCallBcak
)(
void
);
@end
NS_ASSUME_NONNULL_END
GYDemo/GYDemo/Alert/GYWithDrawAlertView.m
View file @
8ce7fcf3
...
...
@@ -12,7 +12,6 @@
@property
(
nonatomic
,
weak
)
IBOutlet
UILabel
*
detailsLab
;
@property
(
nonatomic
,
weak
)
IBOutlet
UIView
*
bgView
;
@end
@implementation
GYWithDrawAlertView
...
...
@@ -69,6 +68,10 @@
animation
.
fillMode
=
kCAFillModeForwards
;
[
_bgView
.
layer
addAnimation
:
animation
forKey
:
nil
];
if
(
self
.
dismissCallBcak
)
{
self
.
dismissCallBcak
();
}
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
30
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
self
.
hidden
=
YES
;
[
self
removeFromSuperview
];
...
...
GYDemo/GYDemo/Alert/GYWithDrawAlertView.xib
View file @
8ce7fcf3
...
...
@@ -5,7 +5,6 @@
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -54,7 +53,6 @@
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"khV-lo-iWO"
firstAttribute=
"centerX"
secondItem=
"qxV-IK-EGI"
secondAttribute=
"centerX"
id=
"2Lp-Nv-21T"
/>
<constraint
firstItem=
"khV-lo-iWO"
firstAttribute=
"centerY"
secondItem=
"qxV-IK-EGI"
secondAttribute=
"centerY"
id=
"Jmd-B1-gKJ"
/>
...
...
@@ -75,7 +73,7 @@
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"vUN-kp-3ea"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor
"
/>
<color
key=
"backgroundColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"0.5"
colorSpace=
"custom"
customColorSpace=
"sRGB
"
/>
<constraints>
<constraint
firstItem=
"qxV-IK-EGI"
firstAttribute=
"centerY"
secondItem=
"iN0-l3-epB"
secondAttribute=
"centerY"
id=
"4np-S5-SLE"
/>
<constraint
firstItem=
"qxV-IK-EGI"
firstAttribute=
"width"
secondItem=
"iN0-l3-epB"
secondAttribute=
"width"
multiplier=
"342:375"
id=
"SOg-ru-9BO"
/>
...
...
@@ -92,8 +90,5 @@
<image
name=
"withDraw_bg"
width=
"347"
height=
"242"
/>
<image
name=
"withDraw_cancel"
width=
"32"
height=
"32"
/>
<image
name=
"withDraw_confirm"
width=
"247"
height=
"52"
/>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GYDemo/GYDemo/SCAds/IOSADManager.m
View file @
8ce7fcf3
...
...
@@ -13,6 +13,7 @@
#import "AppDelegate.h"
#define TIMEOUT (20)
#define cacheOut (900)
/// 广告工具类
...
...
@@ -143,10 +144,13 @@ static IOSADManager * manager = nil;
GYAdsTrackModel
*
ADData
=
self
.
cachevideo
.
firstObject
;
NSTimeInterval
tiem
=
[
ADData
.
cacheDate
timeIntervalSinceNow
];
if
(
fabs
(
tiem
)
>
900
)
{
if
(
fabs
(
tiem
)
>
cacheOut
)
{
[
self
.
videoModels
removeAllObjects
];
[
self
.
cachevideo
removeAllObjects
];
[
self
showADType
:
AdType
resultBlock
:
self
.
adShowBlock
];
self
.
showNow
=
YES
;
MBProgressHUD
*
hud
=
[
MBProgressHUD
showMessage
:
@"请稍等..."
];
hud
.
minShowTime
=
3
;
}
else
{
[
self
showAdWithData
:
self
.
cachevideo
.
firstObject
withADType
:
AdType
];
self
.
showNow
=
NO
;
...
...
GYDemo/GYDemo/ViewController/GYWebViewController.m
View file @
8ce7fcf3
...
...
@@ -41,7 +41,6 @@
[
self
.
countDownView
destroyTimer
];
[
self
.
countDownView
removeFromSuperview
];
}
}
-
(
void
)
viewDidLoad
{
...
...
@@ -448,6 +447,17 @@
[
_webView
.
configuration
.
userContentController
removeScriptMessageHandlerForName
:
@"settingCallBack"
];
}
/// 刷新webView
-
(
void
)
resumeWebView
{
[
self
.
webView
evaluateJavaScript
:
@"onResume()"
completionHandler
:
^
(
id
_Nullable
obj
,
NSError
*
_Nullable
error
)
{
if
(
error
)
{
NSLog
(
@"%@"
,
error
);
}
else
{
NSLog
(
@"onResume JS方法调用成功"
);
}
}];
}
// JS
-
(
void
)
userContentController
:
(
WKUserContentController
*
)
userContentController
didReceiveScriptMessage
:
(
WKScriptMessage
*
)
message
{
NSLog
(
@"%@"
,
message
.
name
);
// 方法名
...
...
@@ -483,6 +493,10 @@
withdraw
.
amt
=
message
.
body
;
withdraw
.
frame
=
self
.
view
.
bounds
;
[
self
.
view
addSubview
:
withdraw
];
WEAKSELF
withdraw
.
dismissCallBcak
=
^
{
[
weakSelf
resumeWebView
];
};
[
withdraw
show
:
nil
];
}
else
if
([
message
.
name
isEqualToString
:
@"showDialog"
]){
...
...
@@ -511,8 +525,10 @@
[
self
.
view
addSubview
:
gift
];
[
gift
show
:
nil
];
WEAKSELF
gift
.
closeCallBack
=
^
{
[
self
.
webView
reload
];
// [self.webView reload];
[
weakSelf
resumeWebView
];
};
}
else
if
([
message
.
name
isEqualToString
:
@"jumpWebActivity"
]){
...
...
@@ -532,7 +548,8 @@
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
200
)
{
//
NSLog
(
@"welfare_video_report success"
);
[
weakSelf
.
webView
reload
];
// [weakSelf.webView reload];
[
weakSelf
resumeWebView
];
}
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
...
...
GYDemo/Pods/Pods.xcodeproj/xcuserdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
8ce7fcf3
...
...
@@ -14,7 +14,7 @@
<
k
e
y
>
BaiduMobAd_SDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
9
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
7
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
Bytedance-UnionAD.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
...
...
@@ -24,7 +24,7 @@
<
k
e
y
>
GDTMobSDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
7
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
13
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
KSAdSDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
...
...
@@ -41,12 +41,12 @@
<
k
e
y
>
MJExtension.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
10
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
9
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
MJRefresh.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
1
2
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
1
0
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
Masonry.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
...
...
@@ -65,12 +65,12 @@
<
k
e
y
>
RSPodKSAdaper.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
12
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
SigmobAd-iOS.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
1
7
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
1
4
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
SwiftyStoreKit.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
...
...
@@ -82,17 +82,17 @@
<
k
e
y
>
UMCCommon.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
1
5
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
1
1
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
VLionAdSDKPoly.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
1
3
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
1
5
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
WechatOpenSDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
1
1
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
1
7
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
SuppressBuildableAutocreation
<
/k
e
y
>
...
...
UnityiOSFarm/Unity-iPhone.xcodeproj/xcuserdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
8ce7fcf3
...
...
@@ -12,7 +12,7 @@
<
k
e
y
>
UnityFramework.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
14
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
farm.xcworkspace/xcuserdata/mazy.xcuserdatad/UserInterfaceState.xcuserstate
View file @
8ce7fcf3
No preview for this file type
farm.xcworkspace/xcuserdata/mazy.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
8ce7fcf3
...
...
@@ -17,21 +17,5 @@
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
uuid =
"E76362C7-EE17-4C6B-8C8C-DD3C4E8BAEB3"
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"GYDemo/GYDemo/ViewController/GYWebViewController.m"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"542"
endingLineNumber =
"542"
landmarkName =
"-userContentController:didReceiveScriptMessage:"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
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