|
@@ -49,7 +49,7 @@ public class CorpCustomerAcquistionLinkPopularizeController {
|
|
|
* @return 加粉链接
|
|
* @return 加粉链接
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/{id}")
|
|
@GetMapping("/{id}")
|
|
|
- public Result<String> get(@PathVariable Long id){
|
|
|
|
|
|
|
+ public Result<CorpCustomerAcquisitionLinkPopularize> get(@PathVariable Long id){
|
|
|
CorpCustomerAcquisitionLinkPopularize linkPopularize = corpCustomerAcquisitionLinkPopularizeService.
|
|
CorpCustomerAcquisitionLinkPopularize linkPopularize = corpCustomerAcquisitionLinkPopularizeService.
|
|
|
getOne(Wrappers.lambdaQuery(CorpCustomerAcquisitionLinkPopularize.class)
|
|
getOne(Wrappers.lambdaQuery(CorpCustomerAcquisitionLinkPopularize.class)
|
|
|
.eq(CorpCustomerAcquisitionLinkPopularize::getPopularizeId, id)
|
|
.eq(CorpCustomerAcquisitionLinkPopularize::getPopularizeId, id)
|
|
@@ -60,7 +60,9 @@ public class CorpCustomerAcquistionLinkPopularizeController {
|
|
|
|
|
|
|
|
StringBuilder url = new StringBuilder();
|
|
StringBuilder url = new StringBuilder();
|
|
|
url.append(DOMAIN).append("/8081/api/applets/channel/customerAcquistion?projectid=__PROJECT_ID__&clickid=__CLICKID__&linkId=").append(linkPopularize.getId());
|
|
url.append(DOMAIN).append("/8081/api/applets/channel/customerAcquistion?projectid=__PROJECT_ID__&clickid=__CLICKID__&linkId=").append(linkPopularize.getId());
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult(url.toString());
|
|
|
|
|
|
|
+
|
|
|
|
|
+ linkPopularize.setUrl(url.toString());
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(linkPopularize);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|