Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
fbc12c07
Commit
fbc12c07
authored
Aug 07, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增重复验证
parent
8b54765f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+8
-5
No files found.
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
fbc12c07
...
...
@@ -2019,8 +2019,10 @@ namespace Mall.WebApi.Controllers.TradePavilion
};
demodel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
demodel
.
TenantId
=
RequestParm
.
TenantId
;
List
<
int
>
ExcelEnumIds
=
JsonConvert
.
DeserializeObject
<
List
<
int
>>(
parms
.
GetStringValue
(
"ExcelEnumIds"
));
string
hashKey
=
Common
.
Config
.
GetHash
(
Common
.
Plugin
.
JsonHelper
.
Serialize
(
demodel
)
+
parms
.
GetStringValue
(
"ExcelEnumIds"
));
string
RandomNum
=
parms
.
GetStringValue
(
"RandomNum"
);
string
ExcelEnumIdsStr
=
parms
.
GetStringValue
(
"ExcelEnumIds"
);
List
<
int
>
ExcelEnumIds
=
JsonConvert
.
DeserializeObject
<
List
<
int
>>(
ExcelEnumIdsStr
);
string
hashKey
=
Common
.
Config
.
GetHash
(
Common
.
Plugin
.
JsonHelper
.
Serialize
(
demodel
)
+
ExcelEnumIdsStr
+
ExcelEnumIdsStr
);
string
fileName
=
"品牌信息"
+
".xls"
;
string
filePath
=
Path
.
Combine
(
Directory
.
GetCurrentDirectory
(),
"upfile/temporary"
);
if
(
System
.
IO
.
Directory
.
Exists
(
filePath
)
==
false
)
//如果不存在就创建file文件夹
...
...
@@ -2086,9 +2088,10 @@ namespace Mall.WebApi.Controllers.TradePavilion
};
demodel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
demodel
.
TenantId
=
RequestParm
.
TenantId
;
List
<
int
>
ExcelEnumIds
=
JsonConvert
.
DeserializeObject
<
List
<
int
>>(
parms
.
GetStringValue
(
"ExcelEnumIds"
));
string
hashKey
=
Common
.
Config
.
GetHash
(
Common
.
Plugin
.
JsonHelper
.
Serialize
(
demodel
)
+
parms
.
GetStringValue
(
"ExcelEnumIds"
));
string
RandomNum
=
parms
.
GetStringValue
(
"RandomNum"
);
string
ExcelEnumIdsStr
=
parms
.
GetStringValue
(
"ExcelEnumIds"
);
List
<
int
>
ExcelEnumIds
=
JsonConvert
.
DeserializeObject
<
List
<
int
>>(
ExcelEnumIdsStr
);
string
hashKey
=
Common
.
Config
.
GetHash
(
Common
.
Plugin
.
JsonHelper
.
Serialize
(
demodel
)
+
ExcelEnumIdsStr
+
RandomNum
);
string
fileName
=
"载体信息"
+
".xls"
;
string
filePath
=
Path
.
Combine
(
Directory
.
GetCurrentDirectory
(),
"upfile/temporary"
);
if
(
System
.
IO
.
Directory
.
Exists
(
filePath
)
==
false
)
//如果不存在就创建file文件夹
...
...
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