Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
a73002aa
Commit
a73002aa
authored
Aug 06, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 灰度接口 1s内 2次调用的问题
parent
889c4f54
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
18 deletions
+10
-18
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-4
YHH5WebViewVC.swift
.../Classes/Modules/InteractionH5(与H5交互)/YHH5WebViewVC.swift
+0
-6
YHUatHelper.swift
.../galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
+6
-4
YHUatHelperViewModel.swift
...lasses/Modules/UatModule(灰度功能)/YHUatHelperViewModel.swift
+0
-4
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
a73002aa
...
@@ -4074,7 +4074,7 @@
...
@@ -4074,7 +4074,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
2
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -4215,7 +4215,7 @@
...
@@ -4215,7 +4215,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
2
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -4419,7 +4419,7 @@
...
@@ -4419,7 +4419,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
2
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -4465,7 +4465,7 @@
...
@@ -4465,7 +4465,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
2
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
...
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHH5WebViewVC.swift
View file @
a73002aa
...
@@ -301,12 +301,6 @@ extension YHH5WebViewVC {
...
@@ -301,12 +301,6 @@ extension YHH5WebViewVC {
}
}
}
}
func
webViewDidScrollView
(
_
offset
:
CGFloat
)
{
//补充 导航栏 逻辑逻辑
}
func
saveImage
(
_
image
:
UIImage
)
{
func
saveImage
(
_
image
:
UIImage
)
{
// 确保应用有权访问相册
// 确保应用有权访问相册
PHPhotoLibrary
.
requestAuthorization
{
status
in
PHPhotoLibrary
.
requestAuthorization
{
status
in
...
...
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
View file @
a73002aa
...
@@ -70,6 +70,8 @@ enum YHUatModules: Int {
...
@@ -70,6 +70,8 @@ enum YHUatModules: Int {
class
YHUatHelper
:
NSObject
{
class
YHUatHelper
:
NSObject
{
static
let
shared
=
YHUatHelper
()
static
let
shared
=
YHUatHelper
()
private
var
isDataOk
:
Bool
=
false
private
lazy
var
viewModel
:
YHUatHelperViewModel
=
{
private
lazy
var
viewModel
:
YHUatHelperViewModel
=
{
let
vm
=
YHUatHelperViewModel
()
let
vm
=
YHUatHelperViewModel
()
return
vm
return
vm
...
@@ -91,7 +93,7 @@ class YHUatHelper: NSObject {
...
@@ -91,7 +93,7 @@ class YHUatHelper: NSObject {
private
extension
YHUatHelper
{
private
extension
YHUatHelper
{
@objc
func
loginSuccess
()
{
@objc
func
loginSuccess
()
{
viewModel
.
isDataOk
=
false
isDataOk
=
false
loadUatData
()
loadUatData
()
}
}
...
@@ -127,7 +129,6 @@ extension YHUatHelper {
...
@@ -127,7 +129,6 @@ extension YHUatHelper {
//加载服务器的uat配置
//加载服务器的uat配置
func
loadUatData
()
{
func
loadUatData
()
{
if
!
YHNetworkStatusManager
.
shared
.
isNetWorkOK
{
if
!
YHNetworkStatusManager
.
shared
.
isNetWorkOK
{
printLog
(
"网络不可用"
)
printLog
(
"网络不可用"
)
return
return
...
@@ -135,12 +136,13 @@ extension YHUatHelper {
...
@@ -135,12 +136,13 @@ extension YHUatHelper {
if
!
viewModel
.
isDataOk
{
if
!
isDataOk
{
viewModel
.
getUatList
{
success
,
error
in
viewModel
.
getUatList
{
success
,
error
in
if
success
{
if
success
{
self
.
isDataOk
=
true
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didRevUatParam
,
object
:
nil
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didRevUatParam
,
object
:
nil
)
}
else
{
}
else
{
self
.
isDataOk
=
false
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelperViewModel.swift
View file @
a73002aa
...
@@ -49,7 +49,6 @@ class YHUatListModel : HandyJSON {
...
@@ -49,7 +49,6 @@ class YHUatListModel : HandyJSON {
class
YHUatHelperViewModel
:
YHBaseViewModel
{
class
YHUatHelperViewModel
:
YHBaseViewModel
{
var
dataList
:
YHUatListModel
?
var
dataList
:
YHUatListModel
?
var
isDataOk
:
Bool
=
false
}
}
// MARK: - 共有方法
// MARK: - 共有方法
...
@@ -75,15 +74,12 @@ extension YHUatHelperViewModel {
...
@@ -75,15 +74,12 @@ extension YHUatHelperViewModel {
callBackBlock
(
false
,
nil
)
callBackBlock
(
false
,
nil
)
return
return
}
}
self
.
isDataOk
=
true
self
.
dataList
=
resultModel
self
.
dataList
=
resultModel
callBackBlock
(
true
,
nil
)
callBackBlock
(
true
,
nil
)
}
failBlock
:
{
err
in
}
failBlock
:
{
err
in
self
.
isDataOk
=
false
callBackBlock
(
false
,
err
)
callBackBlock
(
false
,
err
)
}
}
}
}
...
...
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