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
8f5c0ba0
Commit
8f5c0ba0
authored
Jul 08, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 人脉匹配黑名单
parent
54875a1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
17 deletions
+43
-17
YHMatchResultListViewController.swift
...les/Community(社区)/C/YHMatchResultListViewController.swift
+26
-16
YHMatchUserViewController.swift
...s/Modules/Community(社区)/C/YHMatchUserViewController.swift
+16
-1
YHNetRequest.swift
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
+1
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMatchResultListViewController.swift
View file @
8f5c0ba0
...
@@ -208,6 +208,31 @@ class YHMatchResultListViewController: YHBaseViewController {
...
@@ -208,6 +208,31 @@ class YHMatchResultListViewController: YHBaseViewController {
self
.
view
.
addSubview
(
bgImgV
)
self
.
view
.
addSubview
(
bgImgV
)
self
.
view
.
addSubview
(
navBar
)
self
.
view
.
addSubview
(
navBar
)
self
.
view
.
addSubview
(
self
.
noDataView
)
self
.
bgImgV
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
self
.
navBar
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_statusBar
())
make
.
height
.
equalTo
(
k_Height_NavContentBar
)
}
self
.
noDataView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
self
.
navBar
.
snp
.
bottom
)
.
offset
(
192
)
make
.
height
.
equalTo
(
YHPeopleMatchNoDataView
.
height
)
}
if
self
.
matchUsersArr
.
count
<=
0
{
self
.
noDataView
.
isHidden
=
false
self
.
noDataView
.
titleLabel
.
text
=
"目前尚未找到与您匹配的人脉资源"
self
.
noDataView
.
relookBtn
.
isHidden
=
true
return
}
self
.
view
.
addSubview
(
topLabel
)
self
.
view
.
addSubview
(
topLabel
)
self
.
view
.
addSubview
(
changeBtn
)
self
.
view
.
addSubview
(
changeBtn
)
self
.
view
.
addSubview
(
myCardBtn
)
self
.
view
.
addSubview
(
myCardBtn
)
...
@@ -218,19 +243,9 @@ class YHMatchResultListViewController: YHBaseViewController {
...
@@ -218,19 +243,9 @@ class YHMatchResultListViewController: YHBaseViewController {
self
.
view
.
addSubview
(
self
.
cardActionView
)
self
.
view
.
addSubview
(
self
.
cardActionView
)
self
.
cardActionView
.
addSubview
(
cardContainer
)
self
.
cardActionView
.
addSubview
(
cardContainer
)
self
.
view
.
addSubview
(
self
.
noDataView
)
self
.
view
.
addSubview
(
self
.
rematchBtn
)
self
.
view
.
addSubview
(
self
.
rematchBtn
)
self
.
view
.
addSubview
(
self
.
guideView
)
self
.
view
.
addSubview
(
self
.
guideView
)
self
.
bgImgV
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
self
.
navBar
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_statusBar
())
make
.
height
.
equalTo
(
k_Height_NavContentBar
)
}
self
.
topLabel
.
snp
.
makeConstraints
{
make
in
self
.
topLabel
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
centerX
.
equalToSuperview
()
make
.
top
.
equalTo
(
50
+
k_Height_NavigationtBarAndStatuBar
)
make
.
top
.
equalTo
(
50
+
k_Height_NavigationtBarAndStatuBar
)
...
@@ -280,12 +295,6 @@ class YHMatchResultListViewController: YHBaseViewController {
...
@@ -280,12 +295,6 @@ class YHMatchResultListViewController: YHBaseViewController {
make
.
height
.
equalTo
(
466.0
)
make
.
height
.
equalTo
(
466.0
)
}
}
self
.
noDataView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
self
.
topLabel
.
snp
.
bottom
)
.
offset
(
120
)
make
.
height
.
equalTo
(
YHPeopleMatchNoDataView
.
height
)
}
self
.
rematchBtn
.
snp
.
makeConstraints
{
make
in
self
.
rematchBtn
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
24
)
make
.
left
.
equalTo
(
24
)
make
.
right
.
equalTo
(
-
24
)
make
.
right
.
equalTo
(
-
24
)
...
@@ -449,6 +458,7 @@ extension YHMatchResultListViewController: DragCardDelegate {
...
@@ -449,6 +458,7 @@ extension YHMatchResultListViewController: DragCardDelegate {
print
(
"didRemovedLast"
)
print
(
"didRemovedLast"
)
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.5
,
execute
:
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.5
,
execute
:
{
self
.
noDataView
.
isHidden
=
false
self
.
noDataView
.
isHidden
=
false
self
.
noDataView
.
titleLabel
.
text
=
"本轮智能匹配人脉已到底~"
self
.
rematchBtn
.
isHidden
=
false
self
.
rematchBtn
.
isHidden
=
false
self
.
changeBtn
.
isHidden
=
true
self
.
changeBtn
.
isHidden
=
true
self
.
myCardBtn
.
isHidden
=
true
self
.
myCardBtn
.
isHidden
=
true
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHMatchUserViewController.swift
View file @
8f5c0ba0
...
@@ -319,7 +319,7 @@ extension YHMatchUserViewController {
...
@@ -319,7 +319,7 @@ extension YHMatchUserViewController {
func
requestMatchUserList
()
{
func
requestMatchUserList
()
{
self
.
viewModel
.
getMatchUserlist
{
self
.
viewModel
.
getMatchUserlist
{
success
,
error
in
success
,
error
in
if
success
,
self
.
viewModel
.
matchUserArr
.
count
>
0
{
if
success
{
let
vc
=
YHMatchResultListViewController
()
let
vc
=
YHMatchResultListViewController
()
vc
.
delegate
=
self
vc
.
delegate
=
self
vc
.
matchUsersArr
=
self
.
viewModel
.
matchUserArr
vc
.
matchUsersArr
=
self
.
viewModel
.
matchUserArr
...
@@ -332,6 +332,21 @@ extension YHMatchUserViewController {
...
@@ -332,6 +332,21 @@ extension YHMatchUserViewController {
}
}
}
else
{
}
else
{
if
let
err
=
error
,
err
.
errorCode
==
YHErrorCode
.
peopleMatchBlackList
.
rawValue
{
// 人脉匹配黑名单
let
vc
=
YHMatchResultListViewController
()
vc
.
delegate
=
self
vc
.
matchUsersArr
=
self
.
viewModel
.
matchUserArr
self
.
resetAnimation
()
if
let
curVc
=
UIViewController
.
current
as?
YHCommunityViewController
,
curVc
.
segmentedView
.
selectedIndex
==
0
{
curVc
.
navigationController
?
.
pushViewController
(
vc
,
completion
:
{
})
}
else
{
printLog
(
"hhhhhhhhhhhhhhhhhhhhhhhh"
)
}
return
}
var
msg
=
"匹配失败"
var
msg
=
"匹配失败"
if
let
errorMsg
=
error
?
.
errorMsg
,
!
errorMsg
.
isEmpty
{
if
let
errorMsg
=
error
?
.
errorMsg
,
!
errorMsg
.
isEmpty
{
msg
=
errorMsg
msg
=
errorMsg
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
View file @
8f5c0ba0
...
@@ -27,6 +27,7 @@ public enum YHErrorCode : Int32 {
...
@@ -27,6 +27,7 @@ public enum YHErrorCode : Int32 {
case
dictParseError
=
-
10001
case
dictParseError
=
-
10001
case
tokenInvalidError
=
20001
// 登录token失效
case
tokenInvalidError
=
20001
// 登录token失效
case
forceUpdate
=
10025
// 强制更新版本
case
forceUpdate
=
10025
// 强制更新版本
case
peopleMatchBlackList
=
20005
// 人脉匹配黑名单
case
unregisterError
=
20007
//手机号已注销
case
unregisterError
=
20007
//手机号已注销
public
func
description
()
->
String
{
public
func
description
()
->
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