From f69ec330508946bbf0947b10c363cda0fc444fce Mon Sep 17 00:00:00 2001 From: jimlee Date: Wed, 22 Mar 2023 10:14:28 +0800 Subject: [PATCH] =?UTF-8?q?:ok:=20=E7=94=B1=E4=BA=8E=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=8F=98=E6=9B=B4=EF=BC=8C=E5=B7=B2=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=90=8E=E5=8F=B0=E7=99=BB=E5=BD=95=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=BD=BF=E7=94=A8jsessionID=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pomelotea/hoperun/sign/config/HoperunUserConfig.kt | 8 ++++++++ src/main/resources/config/application-dev.yml | 1 + 2 files changed, 9 insertions(+) diff --git a/src/main/kotlin/com/pomelotea/hoperun/sign/config/HoperunUserConfig.kt b/src/main/kotlin/com/pomelotea/hoperun/sign/config/HoperunUserConfig.kt index e3ea191..35b2aa8 100644 --- a/src/main/kotlin/com/pomelotea/hoperun/sign/config/HoperunUserConfig.kt +++ b/src/main/kotlin/com/pomelotea/hoperun/sign/config/HoperunUserConfig.kt @@ -1,5 +1,7 @@ package com.pomelotea.hoperun.sign.config +import com.pomelotea.hoperun.sign.api.HoperunSignController.Companion.expireMap +import com.pomelotea.hoperun.sign.api.HoperunSignController.Companion.sessionMap import org.springframework.boot.context.properties.ConfigurationProperties import org.springframework.context.annotation.Configuration @@ -21,6 +23,12 @@ open class HoperunUserConfig { var latitudeShort: String = "30.279766" var qingUa: String = "Qing/0.9.101" + init { + expireMap.put("9119", System.currentTimeMillis() + 300000) + addUserConfig("9119", UserConfig(username = "李建明", device = "iOS 16.2;Apple;iPhone13,2;deviceId:a8baf66f-fdeb-4f4d-b1e5-9fafcd5045b6(", projectcode = "U2103S000078", project_id = "U2103S000078", projectname = "JRKF-银河资产对接合作平台贷项目")) + sessionMap.put("9119", "887B892ABF482A65AD9EFA4254250DFE") + } + fun getUA(emplotyeeNo: String): String { return address + "$longitueHead${random(11)}," + diff --git a/src/main/resources/config/application-dev.yml b/src/main/resources/config/application-dev.yml index dcee88a..16fc349 100644 --- a/src/main/resources/config/application-dev.yml +++ b/src/main/resources/config/application-dev.yml @@ -8,3 +8,4 @@ hoperun: longitueShort: "120.0845715522375" latitudeShort: "30.140219809955912" qingUa: "Qing/0.9.113" +