|
|
@@ -312,9 +312,13 @@ public class DomainOrderService {
|
|
|
Map<String, Object> sold = new HashMap<>();
|
|
|
if (!domainOrder.getDomainName().contains(".uni")) {
|
|
|
Collection collection = collectionRepo
|
|
|
- .findFirstByNameAndSalableAndOnShelf("RID元宇宙域名 " + domainOrder.getDomainName(), true, true);
|
|
|
+ .findFirstByNameAndOnShelf("RID元宇宙域名 " + domainOrder.getDomainName(), true);
|
|
|
if (collection != null) {
|
|
|
- sold.put("canAsk", false);
|
|
|
+ if (collection.isSalable()) {
|
|
|
+ sold.put("canAsk", true);
|
|
|
+ } else {
|
|
|
+ sold.put("canAsk", false);
|
|
|
+ }
|
|
|
sold.put("collectionId", collection.getId());
|
|
|
} else {
|
|
|
sold.put("canAsk", true);
|