tos配置

20230922-ljl-fixBug
wangchaoxu 1 year ago
parent 3149fd4d1c
commit f4d7952047

@ -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;
}

Loading…
Cancel
Save