|
|
@@ -106,6 +106,13 @@ public class CollectionController extends BaseController {
|
|
|
@PreAuthorize("hasRole('ADMIN')")
|
|
|
@PostMapping("/createBlindBox")
|
|
|
public Collection createBlindBox(@RequestBody CreateBlindBox createBlindBox) {
|
|
|
+ Collection blindBox = createBlindBox.getBlindBox();
|
|
|
+ List<FileObject> pic = blindBox.getPic();
|
|
|
+ if (pic.size()>0){
|
|
|
+ for (FileObject fileObject : pic) {
|
|
|
+ fileObject.setUrl("https://"+fileObject.getUrl());
|
|
|
+ }
|
|
|
+ }
|
|
|
return collectionService.createBlindBox(createBlindBox);
|
|
|
}
|
|
|
|