|
|
@@ -1,5 +1,6 @@
|
|
|
package com.kym.service.cache;
|
|
|
|
|
|
+import com.kym.common.utils.PlatformConvertUtil;
|
|
|
import com.kym.entity.admin.Platform;
|
|
|
|
|
|
import java.util.Map;
|
|
|
@@ -56,6 +57,7 @@ public enum PlatformCache {
|
|
|
}
|
|
|
|
|
|
public String getPlatformNameByConnectorId(String connectorId) {
|
|
|
+ connectorId = PlatformConvertUtil.parse2LocalConnectorId(connectorId);
|
|
|
return CONNECTOR_ID_PLATFORM_NAME_MAPPING.get(connectorId);
|
|
|
}
|
|
|
|
|
|
@@ -74,6 +76,7 @@ public enum PlatformCache {
|
|
|
* @return
|
|
|
*/
|
|
|
public Platform getPlatformByConnectorId(String connectorId) {
|
|
|
+ connectorId = PlatformConvertUtil.parse2LocalConnectorId(connectorId);
|
|
|
var platformName = getPlatformNameByConnectorId(connectorId);
|
|
|
return PLATFORM_CONFIG_MAPPING.get(platformName);
|
|
|
}
|