From 1bdc5e5e3cf954e1970363e048d1ba740ff72e08 Mon Sep 17 00:00:00 2001 From: jimlee Date: Tue, 11 Apr 2023 11:04:00 +0800 Subject: [PATCH] =?UTF-8?q?:ok:=20=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E6=89=93=E5=8D=A1=E7=BC=BA=E5=B0=91id=E7=A9=BA=E6=8C=87?= =?UTF-8?q?=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pomelotea/hoperun/sign/api/HoperunDakaController.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/pomelotea/hoperun/sign/api/HoperunDakaController.kt b/src/main/kotlin/com/pomelotea/hoperun/sign/api/HoperunDakaController.kt index de73251..501987a 100644 --- a/src/main/kotlin/com/pomelotea/hoperun/sign/api/HoperunDakaController.kt +++ b/src/main/kotlin/com/pomelotea/hoperun/sign/api/HoperunDakaController.kt @@ -13,7 +13,6 @@ import com.pomelotea.hoperun.sign.config.HoperunUserConfig.userConfigMap import com.pomelotea.hoperun.sign.config.UserConfig import com.pomelotea.hoperun.sign.scheduler.AutoDakaScheduler import com.pomelotea.hoperun.sign.scheduler.AutoDakaScheduler.Companion.dakaQueue -import com.pomelotea.hoperun.sign.scheduler.AutoRenewSessionScheduler import okhttp3.FormBody import okhttp3.MediaType.Companion.toMediaTypeOrNull import okhttp3.Request @@ -40,7 +39,7 @@ class HoperunSignController { init { AutoDakaScheduler() - AutoRenewSessionScheduler() +// AutoRenewSessionScheduler() val yxl = UserConfig( project_id = "U2103S000112", projectcode = "U2103S000112", @@ -226,7 +225,7 @@ class HoperunSignController { .addHeader("Cookie", "JSESSIONID=$jsessionId") .addHeader( "User-Agent", - "Qing/0.9.113;iOS 16.3.1;Apple;iPhone13,2;deviceId:a8baf66f-fdeb-4f4d-b1e5-9fafcd5045b6;deviceName:iOS;clientId:10200;os:iOS 16.3.1;brand:Apple;model:iPhone13,2;lang:zh-CN;fontNum:0;fontScale:1.0;ver:10.7.14;Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" + "Qing/0.9.113;iOS 16.4.1;Apple;iPhone13,2;deviceId:a8baf66f-fdeb-4f4d-b1e5-9fafcd5045b6;deviceName:iOS;clientId:10200;os:iOS 16.3.1;brand:Apple;model:iPhone13,2;lang:zh-CN;fontNum:0;fontScale:1.0;ver:10.7.14;Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" ) .addHeader("accept", "*/*") .addHeader("Origin", "http://pom.hoperun.com:8187") @@ -319,7 +318,7 @@ class HoperunSignController { val dakaList = dakaInfo.getJSONArray("list") var lastDakaInfo = dakaList.getJSONObject(dakaList.size - 1) val userConfig: UserConfig = userConfigMap.get(employeeNo) ?: UserConfig() - + userConfig.employeeNo = employeeNo if (lastDakaInfo.getString("begin_time") == null) { for (i in dakaList.size - 1 downTo 0) { lastDakaInfo = dakaList.getJSONObject(i)