| | |
| | | |
| | | /** 登录华为 FusionSolar 并取得 XSRF-TOKEN。 */ |
| | | public String getXsrfToken() { |
| | | TPlatformConfig config = platformConfigService.getOne(Wrappers.lambdaQuery(TPlatformConfig.class).eq(TPlatformConfig::getPlatformName, "华为")); |
| | | TPlatformConfig config = platformConfigService.getOne(Wrappers.lambdaQuery(TPlatformConfig.class) |
| | | .eq(TPlatformConfig::getType, 1) |
| | | .eq(TPlatformConfig::getPlatformName, "华为")); |
| | | if (config == null || StringUtils.isBlank(config.getAccount()) || StringUtils.isBlank(config.getPassword())) { |
| | | return getXsrfToken(DEFAULT_USER_NAME, DEFAULT_SYSTEM_CODE); |
| | | } |