diff --git a/app/config/urlConfig.json b/app/config/urlConfig.json index f43726ccc0..4ef215c968 100644 --- a/app/config/urlConfig.json +++ b/app/config/urlConfig.json @@ -15,7 +15,7 @@ "secure_refresh_url":"http://gateway.ee-private-dev1.myghost.zhidaoauto.com/openapi/security/deviceCert/refresh", "secure_auth_url":"http://gateway.ee-private-dev1.myghost.zhidaoauto.com/openapi/security/deviceCert/auth", "secure_product_id": "10028", - "secureProductSecret": "6b4c4db8286547b78b1def2d76f70fb3" + "secure_product_secret": "6b4c4db8286547b78b1def2d76f70fb3" }, "online": { "och_url": "https://tech.zhidaohulian.com", @@ -32,7 +32,7 @@ "secure_refresh_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/refresh", "secure_auth_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/auth", "secure_product_id": "10028", - "secureProductSecret": "6b4c4db8286547b78b1def2d76f70fb3" + "secure_product_secret": "6b4c4db8286547b78b1def2d76f70fb3" }, "demo": { "och_url": "http://tech-dev.zhidaohulian.com", @@ -49,7 +49,7 @@ "secure_refresh_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/refresh", "secure_auth_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/auth", "secure_product_id": "10028", - "secureProductSecret": "6b4c4db8286547b78b1def2d76f70fb3" + "secure_product_secret": "6b4c4db8286547b78b1def2d76f70fb3" } }, "dali": { @@ -68,7 +68,7 @@ "secure_refresh_url":"http://gateway.ee-private-dev1.myghost.zhidaoauto.com/openapi/security/deviceCert/refresh", "secure_auth_url":"http://gateway.ee-private-dev1.myghost.zhidaoauto.com/openapi/security/deviceCert/auth", "secure_product_id": "10031", - "secureProductSecret": "bda7164f3e8241848d011dcc710f89db" + "secure_product_secret": "bda7164f3e8241848d011dcc710f89db" }, "online": { "och_url": "https://och-driver-eh.zhidaozhixing.com", @@ -85,7 +85,7 @@ "secure_refresh_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/refresh", "secure_auth_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/auth", "secure_product_id": "10031", - "secureProductSecret": "bda7164f3e8241848d011dcc710f89db" + "secure_product_secret": "bda7164f3e8241848d011dcc710f89db" }, "demo": { "och_url": "https://och-a.zhidaozhixing.com", @@ -102,7 +102,7 @@ "secure_refresh_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/refresh", "secure_auth_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/auth", "secure_product_id": "10031", - "secureProductSecret": "bda7164f3e8241848d011dcc710f89db" + "secure_product_secret": "bda7164f3e8241848d011dcc710f89db" } }, "yantai": { @@ -121,7 +121,7 @@ "secure_refresh_url":"http://gateway.ee-private-dev1.myghost.zhidaoauto.com/openapi/security/deviceCert/refresh", "secure_auth_url":"http://gateway.ee-private-dev1.myghost.zhidaoauto.com/openapi/security/deviceCert/auth", "secure_product_id": "10032", - "secureProductSecret": "1514404272484a48b478d082911fcaf9" + "secure_product_secret": "1514404272484a48b478d082911fcaf9" }, "online": { "och_url": "https://och-driver-yt.zhidaozhixing.com", @@ -138,7 +138,7 @@ "secure_refresh_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/refresh", "secure_auth_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/auth", "secure_product_id": "10032", - "secureProductSecret": "1514404272484a48b478d082911fcaf9" + "secure_product_secret": "1514404272484a48b478d082911fcaf9" }, "demo": { "och_url": "https://och-a.zhidaozhixing.com", @@ -155,7 +155,7 @@ "secure_refresh_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/refresh", "secure_auth_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/auth", "secure_product_id": "10032", - "secureProductSecret": "1514404272484a48b478d082911fcaf9" + "secure_product_secret": "1514404272484a48b478d082911fcaf9" } }, "saas": { @@ -173,7 +173,7 @@ "secure_refresh_url":"http://gateway.ee-private-dev1.myghost.zhidaoauto.com/openapi/security/deviceCert/refresh", "secure_auth_url":"http://gateway.ee-private-dev1.myghost.zhidaoauto.com/openapi/security/deviceCert/auth", "secure_product_id": "10030", - "secureProductSecret": "85dcf995430746f6b1c2d4fe6817ff2e" + "secure_product_secret": "85dcf995430746f6b1c2d4fe6817ff2e" }, "online": { "och_url": "https://mogogo-driver.zhidaozhixing.com", @@ -189,7 +189,7 @@ "secure_refresh_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/refresh", "secure_auth_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/auth", "secure_product_id": "10030", - "secureProductSecret": "85dcf995430746f6b1c2d4fe6817ff2e" + "secure_product_secret": "85dcf995430746f6b1c2d4fe6817ff2e" }, "demo": { "och_url": "http://tech-dev.zhidaohulian.com", @@ -205,7 +205,7 @@ "secure_refresh_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/refresh", "secure_auth_url":"https://mygateway.zhidaozhixing.com/openapi/security/deviceCert/auth", "secure_product_id": "10030", - "secureProductSecret": "85dcf995430746f6b1c2d4fe6817ff2e" + "secure_product_secret": "85dcf995430746f6b1c2d4fe6817ff2e" } } } diff --git a/core/function-impl/mogo-core-function-startup/src/main/java/com/mogo/eagle/core/function/startup/stageone/secret/PassPortSecret.java b/core/function-impl/mogo-core-function-startup/src/main/java/com/mogo/eagle/core/function/startup/stageone/secret/PassPortSecret.java index 61e2af1c17..911c040915 100644 --- a/core/function-impl/mogo-core-function-startup/src/main/java/com/mogo/eagle/core/function/startup/stageone/secret/PassPortSecret.java +++ b/core/function-impl/mogo-core-function-startup/src/main/java/com/mogo/eagle/core/function/startup/stageone/secret/PassPortSecret.java @@ -69,20 +69,4 @@ public class PassPortSecret { .sn(deviceId) .certPath(path).build()); } - - private static String getProductId() { - if (DebugConfig.getNetMode() == DebugConfig.NET_MODE_RELEASE - || DebugConfig.getNetMode() == DebugConfig.NET_MODE_DEMO) { - return "10028"; - } - return "10019"; - } - - private static String getProductSecret() { - if (DebugConfig.getNetMode() == DebugConfig.NET_MODE_RELEASE - || DebugConfig.getNetMode() == DebugConfig.NET_MODE_DEMO) { - return "6b4c4db8286547b78b1def2d76f70fb3"; - } - return "5cbcdc2240fa4104a70f28cdbe5ca69b"; - } }