|
@@ -60,8 +60,11 @@ public class OSSUtil {
|
|
|
return month;
|
|
|
}
|
|
|
|
|
|
+// public OSS buildClient(){
|
|
|
+// return new OSSClientBuilder().build(OSS_ENDPOINT_WW, ACCESS_KEY_ID, ACCESS_KEY_SECERT);
|
|
|
+// }
|
|
|
public OSS buildClient(){
|
|
|
- return new OSSClientBuilder().build(OSS_ENDPOINT_WW, ACCESS_KEY_ID, ACCESS_KEY_SECERT);
|
|
|
+ return new OSSClientBuilder().build(!active.equals("prd") ? OSS_ENDPOINT_WW : OSS_ENDPOINT, ACCESS_KEY_ID, ACCESS_KEY_SECERT);
|
|
|
}
|
|
|
|
|
|
/**
|