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
24773813
Commit
24773813
authored
Oct 15, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规则优化
parent
43907df6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
YHScanModel.swift
...y/galaxy/Classes/Modules/Mine(我的)/Model/YHScanModel.swift
+9
-1
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/Model/YHScanModel.swift
View file @
24773813
...
...
@@ -34,6 +34,14 @@ struct YHScanType: OptionSet {
return
"多功能扫码"
}
}
var
prefixString
:
String
{
if
self
==
.
checkIn
{
return
"SLQD_"
}
else
{
return
""
}
}
var
instructionText
:
String
?
{
if
self
==
.
checkIn
{
...
...
@@ -50,7 +58,7 @@ struct YHScanType: OptionSet {
/// 从二维码内容识别类型
func
recognizeType
(
from
code
:
String
)
->
YHScanType
?
{
// 根据二维码内容规则识别类型
if
contains
(
.
checkIn
)
&&
code
.
hasPrefix
(
"SLQD_"
)
{
if
contains
(
.
checkIn
)
&&
code
.
hasPrefix
(
YHScanType
.
checkIn
.
prefixString
)
{
return
.
checkIn
}
...
...
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