Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yafangsuo_adminServer
Overview
Overview
Details
Activity
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
node_server
yafangsuo_adminServer
Commits
07e8dea8
Commit
07e8dea8
authored
Oct 15, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6fe23631
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
systemTools.ts
src/tools/systemTools.ts
+4
-3
No files found.
src/tools/systemTools.ts
View file @
07e8dea8
...
@@ -31,7 +31,8 @@ export function getDefPwd(phone:string) {
...
@@ -31,7 +31,8 @@ export function getDefPwd(phone:string) {
export
function
getFileType
(
fileName
)
{
export
function
getFileType
(
fileName
)
{
let
fileType
=
0
;
let
fileType
=
0
;
fileName
.
forEach
(
info
=>
{
fileName
.
forEach
(
info
=>
{
let
type
=
info
.
split
(
"_"
)[
1
];
let
repList
=
info
.
split
(
"."
);
let
type
=
repList
[
repList
.
length
-
1
];
if
(
!
type
)
throw
new
BizError
(
ERRORENUM
.
文件不存在
,
`文件名
${
info
}
`
);
if
(
!
type
)
throw
new
BizError
(
ERRORENUM
.
文件不存在
,
`文件名
${
info
}
`
);
let
typeNum
=
0
;
let
typeNum
=
0
;
switch
(
type
)
{
switch
(
type
)
{
...
@@ -43,8 +44,8 @@ export function getFileType(fileName) {
...
@@ -43,8 +44,8 @@ export function getFileType(fileName) {
};
};
if
(
typeNum
)
{
if
(
typeNum
)
{
if
(
!
fileType
)
fileType
=
typeNum
;
if
(
!
fileType
)
fileType
=
typeNum
;
else
if
(
fileType
!=
typeNum
)
fileType
=
FILETYPE
.
多类型
else
if
(
fileType
!=
typeNum
)
fileType
=
FILETYPE
.
多类型
;
}
}
});
});
return
fileType
return
fileType
;
}
}
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