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
57a38c6d
Commit
57a38c6d
authored
Nov 16, 2020
by
Mazy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix withdraw bugs
parent
2c2dcef3
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
35 deletions
+29
-35
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
GYWebViewController.m
GYDemo/GYDemo/ViewController/GYWebViewController.m
+10
-0
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 @
57a38c6d
...
@@ -1003,7 +1003,7 @@
...
@@ -1003,7 +1003,7 @@
CODE_SIGN_ENTITLEMENTS
=
GYDemo/GYDemo.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
GYDemo/GYDemo.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
12
6
;
CURRENT_PROJECT_VERSION
=
12
7
;
DEVELOPMENT_TEAM
=
XWMRLLSSFL
;
DEVELOPMENT_TEAM
=
XWMRLLSSFL
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING
=
NO
;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING
=
NO
;
...
@@ -1035,7 +1035,7 @@
...
@@ -1035,7 +1035,7 @@
CODE_SIGN_ENTITLEMENTS
=
GYDemo/GYDemo.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
GYDemo/GYDemo.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
12
6
;
CURRENT_PROJECT_VERSION
=
12
7
;
DEVELOPMENT_TEAM
=
XWMRLLSSFL
;
DEVELOPMENT_TEAM
=
XWMRLLSSFL
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING
=
NO
;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING
=
NO
;
...
...
GYDemo/GYDemo/Alert/GYWithDrawAlertView.h
View file @
57a38c6d
...
@@ -14,6 +14,8 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -14,6 +14,8 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
copy
)
NSString
*
amt
;
@property
(
nonatomic
,
copy
)
NSString
*
amt
;
-
(
void
)
show
:(
UIView
*
_Nullable
)
superView
;
-
(
void
)
show
:(
UIView
*
_Nullable
)
superView
;
@property
(
nonatomic
,
copy
)
void
(
^
dismissCallBcak
)(
void
);
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
GYDemo/GYDemo/Alert/GYWithDrawAlertView.m
View file @
57a38c6d
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
@property
(
nonatomic
,
weak
)
IBOutlet
UILabel
*
detailsLab
;
@property
(
nonatomic
,
weak
)
IBOutlet
UILabel
*
detailsLab
;
@property
(
nonatomic
,
weak
)
IBOutlet
UIView
*
bgView
;
@property
(
nonatomic
,
weak
)
IBOutlet
UIView
*
bgView
;
@end
@end
@implementation
GYWithDrawAlertView
@implementation
GYWithDrawAlertView
...
@@ -69,6 +68,10 @@
...
@@ -69,6 +68,10 @@
animation
.
fillMode
=
kCAFillModeForwards
;
animation
.
fillMode
=
kCAFillModeForwards
;
[
_bgView
.
layer
addAnimation
:
animation
forKey
:
nil
];
[
_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
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
30
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
self
.
hidden
=
YES
;
self
.
hidden
=
YES
;
[
self
removeFromSuperview
];
[
self
removeFromSuperview
];
...
...
GYDemo/GYDemo/Alert/GYWithDrawAlertView.xib
View file @
57a38c6d
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<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"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
...
@@ -54,7 +53,6 @@
...
@@ -54,7 +53,6 @@
</connections>
</connections>
</button>
</button>
</subviews>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraints>
<constraint
firstItem=
"khV-lo-iWO"
firstAttribute=
"centerX"
secondItem=
"qxV-IK-EGI"
secondAttribute=
"centerX"
id=
"2Lp-Nv-21T"
/>
<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"
/>
<constraint
firstItem=
"khV-lo-iWO"
firstAttribute=
"centerY"
secondItem=
"qxV-IK-EGI"
secondAttribute=
"centerY"
id=
"Jmd-B1-gKJ"
/>
...
@@ -75,7 +73,7 @@
...
@@ -75,7 +73,7 @@
</view>
</view>
</subviews>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"vUN-kp-3ea"
/>
<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>
<constraints>
<constraint
firstItem=
"qxV-IK-EGI"
firstAttribute=
"centerY"
secondItem=
"iN0-l3-epB"
secondAttribute=
"centerY"
id=
"4np-S5-SLE"
/>
<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"
/>
<constraint
firstItem=
"qxV-IK-EGI"
firstAttribute=
"width"
secondItem=
"iN0-l3-epB"
secondAttribute=
"width"
multiplier=
"342:375"
id=
"SOg-ru-9BO"
/>
...
@@ -92,8 +90,5 @@
...
@@ -92,8 +90,5 @@
<image
name=
"withDraw_bg"
width=
"347"
height=
"242"
/>
<image
name=
"withDraw_bg"
width=
"347"
height=
"242"
/>
<image
name=
"withDraw_cancel"
width=
"32"
height=
"32"
/>
<image
name=
"withDraw_cancel"
width=
"32"
height=
"32"
/>
<image
name=
"withDraw_confirm"
width=
"247"
height=
"52"
/>
<image
name=
"withDraw_confirm"
width=
"247"
height=
"52"
/>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</resources>
</document>
</document>
GYDemo/GYDemo/ViewController/GYWebViewController.m
View file @
57a38c6d
...
@@ -483,6 +483,16 @@
...
@@ -483,6 +483,16 @@
withdraw
.
amt
=
message
.
body
;
withdraw
.
amt
=
message
.
body
;
withdraw
.
frame
=
self
.
view
.
bounds
;
withdraw
.
frame
=
self
.
view
.
bounds
;
[
self
.
view
addSubview
:
withdraw
];
[
self
.
view
addSubview
:
withdraw
];
WEAKSELF
withdraw
.
dismissCallBcak
=
^
{
[
weakSelf
.
webView
evaluateJavaScript
:
@"onResume()"
completionHandler
:
^
(
id
_Nullable
obj
,
NSError
*
_Nullable
error
)
{
if
(
error
)
{
NSLog
(
@"%@"
,
error
);
}
else
{
NSLog
(
@"onResume JS方法调用成功"
);
}
}];
};
[
withdraw
show
:
nil
];
[
withdraw
show
:
nil
];
}
else
if
([
message
.
name
isEqualToString
:
@"showDialog"
]){
}
else
if
([
message
.
name
isEqualToString
:
@"showDialog"
]){
...
...
GYDemo/Pods/Pods.xcodeproj/xcuserdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
57a38c6d
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<
k
e
y
>
BaiduMobAd_SDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
BaiduMobAd_SDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
k
e
y
>
Bytedance-UnionAD.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
Bytedance-UnionAD.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<
k
e
y
>
GDTMobSDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
GDTMobSDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
k
e
y
>
KSAdSDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
KSAdSDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -41,12 +41,12 @@
...
@@ -41,12 +41,12 @@
<
k
e
y
>
MJExtension.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
MJExtension.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
k
e
y
>
MJRefresh.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
MJRefresh.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
k
e
y
>
Masonry.xcscheme
<
/k
e
y
>
<
k
e
y
>
Masonry.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -65,12 +65,12 @@
...
@@ -65,12 +65,12 @@
<
k
e
y
>
RSPodKSAdaper.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
RSPodKSAdaper.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
k
e
y
>
SigmobAd-iOS.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
SigmobAd-iOS.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
k
e
y
>
SwiftyStoreKit.xcscheme
<
/k
e
y
>
<
k
e
y
>
SwiftyStoreKit.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -82,17 +82,17 @@
...
@@ -82,17 +82,17 @@
<
k
e
y
>
UMCCommon.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
UMCCommon.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
k
e
y
>
VLionAdSDKPoly.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
VLionAdSDKPoly.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
k
e
y
>
WechatOpenSDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
WechatOpenSDK.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
SuppressBuildableAutocreation
<
/k
e
y
>
<
k
e
y
>
SuppressBuildableAutocreation
<
/k
e
y
>
...
...
UnityiOSFarm/Unity-iPhone.xcodeproj/xcuserdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
57a38c6d
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<
k
e
y
>
UnityFramework.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
UnityFramework.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
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
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
farm.xcworkspace/xcuserdata/mazy.xcuserdatad/UserInterfaceState.xcuserstate
View file @
57a38c6d
No preview for this file type
farm.xcworkspace/xcuserdata/mazy.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
57a38c6d
...
@@ -17,21 +17,5 @@
...
@@ -17,21 +17,5 @@
</Locations>
</Locations>
</BreakpointContent>
</BreakpointContent>
</BreakpointProxy>
</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>
</Breakpoints>
</Bucket>
</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