Commit cc590084 by wyc

删除limit白名单,加载上月30天改31天

parent 5fb4a0ab
...@@ -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
......
...@@ -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 <= 30; i++) for (int i = 1; i <= 31; 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment