|
|
|
@ -53,9 +53,12 @@ public class TosTemplate {
|
|
|
|
|
if (SystemTool.isDevEnv()) {
|
|
|
|
|
tosClient = (new TOSV2ClientBuilder()).build(region, endpoint, accessKey, secretKey);
|
|
|
|
|
bucket = "ddy-pub-dev";
|
|
|
|
|
}else{
|
|
|
|
|
} else if (SystemTool.isTestEnv()) {
|
|
|
|
|
tosClient = TosFactory.newTosClient();
|
|
|
|
|
bucket = "miaofenxiao-file";
|
|
|
|
|
} else if (SystemTool.isProdEnv()) {
|
|
|
|
|
tosClient = TosFactory.newTosClient();
|
|
|
|
|
bucket = "miaofenxiao-file-prod";
|
|
|
|
|
}
|
|
|
|
|
return tosClient;
|
|
|
|
|
}
|
|
|
|
|