|
|
@@ -1,6 +1,7 @@
|
|
|
package com.cyksj.web.controller.manage.corp;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
+import com.cyksj.common.EnvCommonService;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
@@ -24,14 +25,14 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
@RequestMapping("/v2/corp/customer/acuistion/popularize")
|
|
|
@RequiredArgsConstructor
|
|
|
public class CorpCustomerAcquistionLinkPopularizeController {
|
|
|
- private static final String DOMAIN = "https://nf.video";
|
|
|
-
|
|
|
private final CorpCustomerAcquisitionLinkPopularizeService corpCustomerAcquisitionLinkPopularizeService;
|
|
|
|
|
|
private final BeanSearcher beanSearcher;
|
|
|
|
|
|
private final HttpServletRequest request;
|
|
|
|
|
|
+ private final EnvCommonService envCommonService;
|
|
|
+
|
|
|
/**
|
|
|
* 创建加粉链接
|
|
|
*/
|
|
|
@@ -39,7 +40,7 @@ public class CorpCustomerAcquistionLinkPopularizeController {
|
|
|
public Result<String> add(@RequestBody CorpCustomerAcquisitionLinkPopularize corpCustomerAcquisitionLinkPopularize){
|
|
|
CorpCustomerAcquisitionLinkPopularize linkPopularize = corpCustomerAcquisitionLinkPopularizeService.add(corpCustomerAcquisitionLinkPopularize);
|
|
|
StringBuilder url = new StringBuilder();
|
|
|
- url.append(DOMAIN).append("/8081/api/applets/channel/customerAcquistion?projectid=__PROJECT_ID__&clickid=__CLICKID__&linkId=").append(linkPopularize.getId());
|
|
|
+ url.append(envCommonService.getNotifyHost()).append("applets/channel/customerAcquistion?projectid=__PROJECT_ID__&clickid=__CLICKID__&linkId=").append(linkPopularize.getId());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(url.toString());
|
|
|
}
|
|
|
|
|
|
@@ -59,7 +60,7 @@ public class CorpCustomerAcquistionLinkPopularizeController {
|
|
|
}
|
|
|
|
|
|
StringBuilder url = new StringBuilder();
|
|
|
- url.append(DOMAIN).append("/8081/api/applets/channel/customerAcquistion?projectid=__PROJECT_ID__&clickid=__CLICKID__&linkId=").append(linkPopularize.getId());
|
|
|
+ url.append(envCommonService.getNotifyHost()).append("applets/channel/customerAcquistion?projectid=__PROJECT_ID__&clickid=__CLICKID__&linkId=").append(linkPopularize.getId());
|
|
|
|
|
|
linkPopularize.setUrl(url.toString());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(linkPopularize);
|