Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
cc590084
Commit
cc590084
authored
Jun 28, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除limit白名单,加载上月30天改31天
parent
5fb4a0ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
performance/Performance.Api/limit.json
+6
-1
performance/Performance.Services/CopyService.cs
+1
-1
No files found.
performance/Performance.Api/limit.json
View file @
cc590084
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"ClientIdHeader"
:
"X-ClientId"
,
"ClientIdHeader"
:
"X-ClientId"
,
"HttpStatusCode"
:
429
,
"HttpStatusCode"
:
429
,
//
本地测试需要取消白名单IP
//
本地测试需要取消白名单IP
"IpWhitelist"
:
[
"127.0.0.1"
,
"::1/10"
,
"192.168.0.0/24"
],
//
"IpWhitelist"
:
[
"127.0.0.1"
,
"::1/10"
,
"192.168.0.0/24"
],
"EndpointWhitelist"
:
[
"get:/api/license"
],
"EndpointWhitelist"
:
[
"get:/api/license"
],
"ClientWhitelist"
:
[
"dev-id-1"
,
"dev-id-2"
],
"ClientWhitelist"
:
[
"dev-id-1"
,
"dev-id-2"
],
"QuotaExceededResponse"
:
{
"QuotaExceededResponse"
:
{
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
"Limit"
:
1
"Limit"
:
1
},
},
{
{
"Endpoint"
:
"post:/api/Attendance/issue/confirm"
,
"Period"
:
"1s"
,
"Limit"
:
1
},
{
"Endpoint"
:
"post:*"
,
"Endpoint"
:
"post:*"
,
"Period"
:
"1s"
,
"Period"
:
"1s"
,
"Limit"
:
10
"Limit"
:
10
...
...
performance/Performance.Services/CopyService.cs
View file @
cc590084
...
@@ -312,7 +312,7 @@ public void Copy_AttendanceType(per_allot allot, int prevAllotId, bool delHistot
...
@@ -312,7 +312,7 @@ public void Copy_AttendanceType(per_allot allot, int prevAllotId, bool delHistot
var
attendanceTypess
=
_pperAttendanceTypeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allot
.
ID
||
t
.
AllotId
==
0
);
var
attendanceTypess
=
_pperAttendanceTypeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allot
.
ID
||
t
.
AllotId
==
0
);
foreach
(
var
item
in
attendanceDepts
)
foreach
(
var
item
in
attendanceDepts
)
{
{
for
(
int
i
=
1
;
i
<=
3
0
;
i
++)
for
(
int
i
=
1
;
i
<=
3
1
;
i
++)
{
{
int
?
dayValue
=
(
int
?)
typeof
(
per_attendance_dept
).
GetProperty
(
"Day"
+
i
.
ToString
(
"D2"
))?.
GetValue
(
item
);
int
?
dayValue
=
(
int
?)
typeof
(
per_attendance_dept
).
GetProperty
(
"Day"
+
i
.
ToString
(
"D2"
))?.
GetValue
(
item
);
if
(
dayValue
!=
null
&&
dayValue
>
0
)
if
(
dayValue
!=
null
&&
dayValue
>
0
)
...
...
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