|
|
@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON; |
|
|
|
import com.epmet.commons.tools.constant.SpecialCustomerOrgConstant; |
|
|
|
import com.epmet.commons.tools.dto.form.UpdateUserPointsFormDTO; |
|
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
|
import com.epmet.commons.tools.enums.EnvEnum; |
|
|
|
import com.epmet.commons.tools.enums.ExternalApiEnum; |
|
|
|
import com.epmet.commons.tools.enums.ExternalServerEnum; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
@ -39,7 +40,16 @@ public class YuShanSysApiService { |
|
|
|
if (StringUtils.isBlank(customerId) || CollectionUtils.isEmpty(paramList)) { |
|
|
|
throw new RenException("参数错误"); |
|
|
|
} |
|
|
|
String serverUrl = ExternalServerEnum.getUrl(customerId); |
|
|
|
if (!SpecialCustomerOrgConstant.PING_YIN_CUSTOMER_ID.equals(customerId)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
String serverUrl = null; |
|
|
|
EnvEnum currentEnv = EnvEnum.getCurrentEnv(); |
|
|
|
if (EnvEnum.PROD.getCode().equals(currentEnv.getCode())) { |
|
|
|
serverUrl = ExternalServerEnum.getUrl(SpecialCustomerOrgConstant.YUSHAN_PROD_CUSTOMER_ID); |
|
|
|
} else if (EnvEnum.TEST.getCode().equals(currentEnv.getCode()) || EnvEnum.LOCAL.getCode().equals(currentEnv.getCode())) { |
|
|
|
serverUrl = ExternalServerEnum.getUrl(SpecialCustomerOrgConstant.YUSHAN_TEST_CUSTOMER_ID); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(serverUrl)) { |
|
|
|
log.warn(String.format("当前客户:%s,未配置服务器地址", customerId)); |
|
|
|
return; |
|
|
|