licailing 3 ani în urmă
părinte
comite
3bcb3b2f0d

+ 1 - 1
src/main/java/com/izouma/nineth/web/CollectionController.java

@@ -104,7 +104,7 @@ public class CollectionController extends BaseController {
         List<FileObject> pic = blindBox.getPic();
         List<FileObject> pic = blindBox.getPic();
         if (pic.size()>0){
         if (pic.size()>0){
             for (FileObject fileObject : pic) {
             for (FileObject fileObject : pic) {
-                fileObject.setUrl("https://"+fileObject.getUrl());
+                fileObject.setUrl(fileObject.getUrl());
             }
             }
         }
         }
         return collectionService.createBlindBox(createBlindBox);
         return collectionService.createBlindBox(createBlindBox);

+ 4 - 4
src/main/java/com/izouma/nineth/web/FileUploadController.java

@@ -73,9 +73,9 @@ public class FileUploadController {
             ByteArrayOutputStream os = new ByteArrayOutputStream();
             ByteArrayOutputStream os = new ByteArrayOutputStream();
             ImageIO.write(img, ext, os);
             ImageIO.write(img, ext, os);
             InputStream is = new ByteArrayInputStream(os.toByteArray());
             InputStream is = new ByteArrayInputStream(os.toByteArray());
-            return "https://"+storageService.uploadFromInputStream(is, path);
+            return storageService.uploadFromInputStream(is, path);
         }
         }
-        return "https://"+storageService.uploadFromInputStream(file.getInputStream(), path);
+        return storageService.uploadFromInputStream(file.getInputStream(), path);
     }
     }
 
 
     @PostMapping("/base64")
     @PostMapping("/base64")
@@ -141,9 +141,9 @@ public class FileUploadController {
             ByteArrayOutputStream os = new ByteArrayOutputStream();
             ByteArrayOutputStream os = new ByteArrayOutputStream();
             ImageIO.write(img, ext, os);
             ImageIO.write(img, ext, os);
             InputStream is = new ByteArrayInputStream(os.toByteArray());
             InputStream is = new ByteArrayInputStream(os.toByteArray());
-            url = "https://"+storageService.uploadFromInputStream(is, path);
+            url = storageService.uploadFromInputStream(is, path);
         } else {
         } else {
-            url = "https://"+storageService.uploadFromInputStream(new FileInputStream(tmpFile), path);
+            url = storageService.uploadFromInputStream(new FileInputStream(tmpFile), path);
         }
         }
 
 
         String thumbUrl = null;
         String thumbUrl = null;

+ 1 - 1
src/main/resources/application.yaml

@@ -145,7 +145,7 @@ aliyun:
   access-key-secret: e1MS6j0wypXJrw8CM0hObZu8qKbfah
   access-key-secret: e1MS6j0wypXJrw8CM0hObZu8qKbfah
   oss-end-point: oss-cn-hangzhou.aliyuncs.com
   oss-end-point: oss-cn-hangzhou.aliyuncs.com
   oss-bucket-name: njnft
   oss-bucket-name: njnft
-  oss-domain: njnft.oss-cn-hangzhou.aliyuncs.com
+  oss-domain: https://njnft.oss-cn-hangzhou.aliyuncs.com
   sms-sign: 走马信息
   sms-sign: 走马信息
   sms-code: SMS_175485688
   sms-code: SMS_175485688
   sell-out-code: SMS_211489622
   sell-out-code: SMS_211489622