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
4f08d75a
Commit
4f08d75a
authored
Oct 13, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码相关功能
parent
69a1a665
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
20 deletions
+44
-20
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+14
-11
YHScanViewController.swift
...axy/Classes/Modules/Mine(我的)/C/YHScanViewController.swift
+10
-2
LBXScanViewController.swift
...alaxy/Classes/Tools/SwiftScan/LBXScanViewController.swift
+20
-7
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
4f08d75a
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
7
0
;
objectVersion
=
6
0
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -2661,7 +2661,7 @@
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
043F0ED92E02A60C003354EB
/*
PBXFileSystemSynchronizedBuildFileExceptionS
et */
=
{
043F0ED92E02A60C003354EB
/*
Exceptions for "yinheReplayExt" folder in "yinheReplayExt" targ
et */
=
{
isa
=
PBXFileSystemSynchronizedBuildFileExceptionSet
;
membershipExceptions
=
(
Info.plist
,
...
...
@@ -2671,7 +2671,18 @@
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
043F0ECD2E02A60C003354EB
/* yinheReplayExt */
=
{
isa
=
PBXFileSystemSynchronizedRootGroup
;
exceptions
=
(
043F0ED92E02A60C003354EB
/* PBXFileSystemSynchronizedBuildFileExceptionSet */
,
);
explicitFileTypes
=
{};
explicitFolders
=
();
path
=
yinheReplayExt
;
sourceTree
=
"<group>"
;
};
043F0ECD2E02A60C003354EB
/* yinheReplayExt */
=
{
isa
=
PBXFileSystemSynchronizedRootGroup
;
exceptions
=
(
043F0ED92E02A60C003354EB
/* Exceptions for "yinheReplayExt" folder in "yinheReplayExt" target */
,
);
explicitFileTypes
=
{
};
explicitFolders
=
(
);
path
=
yinheReplayExt
;
sourceTree
=
"<group>"
;
};
/* End PBXFileSystemSynchronizedRootGroup section */
/* Begin PBXFrameworksBuildPhase section */
...
...
@@ -7270,14 +7281,10 @@
inputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-frameworks-${CONFIGURATION}-input-files.xcfilelist"
,
);
inputPaths
=
(
);
name
=
"[CP] Embed Pods Frameworks"
;
outputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-frameworks-${CONFIGURATION}-output-files.xcfilelist"
,
);
outputPaths
=
(
);
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellScript
=
"\"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-frameworks.sh\"\n"
;
...
...
@@ -7291,14 +7298,10 @@
inputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-resources-${CONFIGURATION}-input-files.xcfilelist"
,
);
inputPaths
=
(
);
name
=
"[CP] Copy Pods Resources"
;
outputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-resources-${CONFIGURATION}-output-files.xcfilelist"
,
);
outputPaths
=
(
);
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellScript
=
"\"${PODS_ROOT}/Target Support Files/Pods-galaxy/Pods-galaxy-resources.sh\"\n"
;
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHScanViewController.swift
View file @
4f08d75a
...
...
@@ -26,10 +26,18 @@ class YHScanViewController: LBXScanViewController {
setupScanStyle
()
}
override
func
handleCodeResult
(
arrayResult
:
[
LBXScanResult
])
{
//
override
func
viewDidAppear
(
_
animated
:
Bool
)
{
super
.
viewDidAppear
(
animated
)
let
navBar
=
gk_navigationBar
if
view
.
subviews
.
contains
(
navBar
)
{
view
.
bringSubviewToFront
(
navBar
)
}
}
// override func handleCodeResult(arrayResult: [LBXScanResult]) {
// //
// }
deinit
{
//
}
...
...
galaxy/galaxy/Classes/Tools/SwiftScan/LBXScanViewController.swift
View file @
4f08d75a
...
...
@@ -11,7 +11,7 @@ import Foundation
import
AVFoundation
protocol
LBXScanViewControllerDelegate
:
AnyObject
{
func
scanFinished
(
scanResult
:
LBXScanResult
,
error
:
String
?)
func
scanFinished
(
scanResult
:
LBXScanResult
?
,
error
:
String
?)
}
protocol
QRRectDelegate
:
AnyObject
{
...
...
@@ -45,7 +45,6 @@ class LBXScanViewController: YHBaseViewController, UIImagePickerControllerDelega
override
open
func
viewDidLoad
()
{
super
.
viewDidLoad
()
self
.
view
.
backgroundColor
=
UIColor
.
black
drawScanView
()
// self.edgesForExtendedLayout = UIRectEdge(rawValue: 0)
}
...
...
@@ -60,6 +59,7 @@ class LBXScanViewController: YHBaseViewController, UIImagePickerControllerDelega
override
open
func
viewDidAppear
(
_
animated
:
Bool
)
{
super
.
viewDidAppear
(
animated
)
drawScanView
()
LBXPermissions
.
authorizeCameraWith
{
[
weak
self
]
granted
in
...
...
@@ -135,15 +135,28 @@ class LBXScanViewController: YHBaseViewController, UIImagePickerControllerDelega
open
func
handleCodeResult
(
arrayResult
:
[
LBXScanResult
])
{
if
let
delegate
=
scanResultDelegate
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
let
result
:
LBXScanResult
=
arrayResult
[
0
]
delegate
.
scanFinished
(
scanResult
:
result
,
error
:
nil
)
if
arrayResult
.
count
>
0
{
let
result
:
LBXScanResult
=
arrayResult
[
0
]
delegate
.
scanFinished
(
scanResult
:
result
,
error
:
nil
)
}
else
{
delegate
.
scanFinished
(
scanResult
:
nil
,
error
:
"扫码结束,无结果"
)
}
}
else
{
for
result
:
LBXScanResult
in
arrayResult
{
debugPrint
(
"%@"
,
result
.
strScanned
??
""
)
}
let
result
:
LBXScanResult
=
arrayResult
[
0
]
YHCommonAlertView
.
show
(
result
.
strBarCodeType
,
result
.
strScanned
,
""
,
"确定"
,
fullGuestureEnable
:
false
)
{
}
callBack
:
{
if
arrayResult
.
count
>
0
{
let
result
:
LBXScanResult
=
arrayResult
[
0
]
YHCommonAlertView
.
show
(
result
.
strBarCodeType
,
result
.
strScanned
,
""
,
"确定"
,
fullGuestureEnable
:
false
)
{
}
callBack
:
{
[
weak
self
]
in
self
?
.
startScan
()
}
}
else
{
YHCommonAlertView
.
show
(
""
,
"扫码结束,无结果"
,
""
,
"确定"
,
fullGuestureEnable
:
false
)
{
}
callBack
:
{
[
weak
self
]
in
self
?
.
startScan
()
}
}
}
}
...
...
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