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
6fa6ed89
Commit
6fa6ed89
authored
Aug 02, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 2处bug
parent
8c31a383
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
YHUatHelper.swift
.../galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
+2
-0
YHUatHelperViewModel.swift
...lasses/Modules/UatModule(灰度功能)/YHUatHelperViewModel.swift
+5
-0
YHNetRequest.swift
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
+10
-5
No files found.
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
View file @
6fa6ed89
...
@@ -128,6 +128,8 @@ extension YHUatHelper {
...
@@ -128,6 +128,8 @@ extension YHUatHelper {
return
return
}
}
if
!
viewModel
.
isDataOk
{
if
!
viewModel
.
isDataOk
{
viewModel
.
getUatList
{
success
,
error
in
viewModel
.
getUatList
{
success
,
error
in
if
success
{
if
success
{
...
...
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelperViewModel.swift
View file @
6fa6ed89
...
@@ -57,6 +57,11 @@ extension YHUatHelperViewModel {
...
@@ -57,6 +57,11 @@ extension YHUatHelperViewModel {
//请求灰度功能列表配置
//请求灰度功能列表配置
func
getUatList
(
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
getUatList
(
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
if
!
YHLoginManager
.
shared
.
isLogin
()
{
printLog
(
"非登录状态"
)
return
}
let
params
:
[
String
]
=
[
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"9"
]
let
params
:
[
String
]
=
[
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"9"
]
var
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Uat
.
uatListApi
var
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Uat
.
uatListApi
for
(
index
,
item
)
in
params
.
enumerated
()
{
for
(
index
,
item
)
in
params
.
enumerated
()
{
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
View file @
6fa6ed89
...
@@ -171,10 +171,10 @@ class YHNetRequest: NSObject {
...
@@ -171,10 +171,10 @@ class YHNetRequest: NSObject {
var
requestHeaders
=
getHeader
()
var
requestHeaders
=
getHeader
()
#if DEBUG
//
#if DEBUG
printLog
(
"网络请求头数据:"
)
//
printLog("网络请求头数据:" )
printLog
(
requestHeaders
)
//
printLog(requestHeaders)
#endif
//
#endif
///不使用缓存
///不使用缓存
AF
.
sessionConfiguration
.
requestCachePolicy
=
.
reloadIgnoringCacheData
AF
.
sessionConfiguration
.
requestCachePolicy
=
.
reloadIgnoringCacheData
...
@@ -186,7 +186,12 @@ class YHNetRequest: NSObject {
...
@@ -186,7 +186,12 @@ class YHNetRequest: NSObject {
httpRequest
?
.
responseString
(
completionHandler
:
{
string
in
httpRequest
?
.
responseString
(
completionHandler
:
{
string
in
#if DEBUG
#if DEBUG
printLog
(
"
\n
网络请求已返回 string=
\(
string
)
"
)
print
(
"================================begin"
)
print
(
"网络请求接口
\n
"
+
(
self
.
url
??
""
))
print
(
"网络请求头数据如下
\n
"
)
print
(
requestHeaders
)
print
(
"网络请求返回数据
\n
\(
string
)
"
)
print
(
"********************************end"
)
#endif
#endif
self
.
completeHandle
(
string
:
string
)
self
.
completeHandle
(
string
:
string
)
...
...
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