|
|
@ -32,6 +32,7 @@ import com.epmet.commons.tools.utils.HttpClientManager; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constant.ModuleConstant; |
|
|
|
import com.epmet.constant.RoleKeyConstants; |
|
|
|
import com.epmet.constant.ThirdConstant; |
|
|
|
import com.epmet.constant.UserWorkType; |
|
|
|
import com.epmet.dao.CustomerDao; |
|
|
|
import com.epmet.dto.*; |
|
|
@ -520,7 +521,8 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn |
|
|
|
throw new RenException(customerResult.getCode(), customerResult.getInternalMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
//7.设置服务器域名,业务域名
|
|
|
|
//7.为微信小程序客户设置服务器域名,业务域名
|
|
|
|
if (ThirdConstant.MINI.equals(paCustomer.getType())) { |
|
|
|
String domainUrl = "https://epmet-cloud.elinkservice.cn/api/third/code/setdomain/" + formDTO.getCustomerId(); |
|
|
|
String domainData = HttpClientManager.getInstance().sendPostByJSON(domainUrl, null).getData(); |
|
|
|
JSONObject domainObject = JSON.parseObject(domainData); |
|
|
@ -528,6 +530,7 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn |
|
|
|
if (!domainResult.success()) { |
|
|
|
throw new RenException(domainResult.getCode(), domainResult.getInternalMsg()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|