|
|
@@ -133,9 +133,8 @@ public class DomainOrderController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
//添加超链collectionId
|
|
|
- @PostMapping("/addHyperLinkWithId")
|
|
|
+ @PostMapping("/addId")
|
|
|
public void addHyperLinkWhitId(@RequestParam("assetId") Long assetId, @RequestParam("openHyperLink") boolean openHyperLink,
|
|
|
@RequestParam("hyperLinkType") HyperLinkType hyperLinkType,
|
|
|
@RequestParam("address") String address,
|
|
|
@@ -159,7 +158,7 @@ public class DomainOrderController extends BaseController {
|
|
|
List<DomainOrder> filteredDomainOrders = domainOrderRepo.findAllByHyperLinkType(HyperLinkType.COLLECTION);
|
|
|
for (DomainOrder filteredDomainOrder : filteredDomainOrders) {
|
|
|
String url = filteredDomainOrder.getAddress();
|
|
|
- if(!url.isBlank()){
|
|
|
+ if (!url.isBlank()) {
|
|
|
int secondSlashIndex = url.indexOf('/', url.indexOf('/') + 1);
|
|
|
if (url.length() > secondSlashIndex + 1) {
|
|
|
String secondNumber = url.substring(secondSlashIndex + 1);
|
|
|
@@ -173,8 +172,5 @@ public class DomainOrderController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|