Skip to content

Commit 9c83129

Browse files
author
berry_cooper
committed
xx
1 parent b421ed4 commit 9c83129

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/berry/util/Auth.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ public StringMap authorization(String url) {
5252

5353
/**
5454
* 获取授权 口令,
55-
* <p>注意:该口令拥有对应账户的所有权限</p>
55+
* <p>注意:该口令拥有对应账户所有bucket的上传权限</p>
5656
*
57-
* @param expires 有效时长,单位秒。默认3600s
57+
* @param expires 有效时长,单位秒
5858
* @return token
5959
*/
6060
public String uploadToken(long expires, String requestIp) {
6161
long deadline = System.currentTimeMillis() / 1000 + expires;
62-
// 这里保存了 过期时间信息,允许访问的url ,请求ip
62+
// 这里保存了 过期时间信息, 请求ip
6363
StringMap map = new StringMap();
6464
map.put(ENCODE_JSON_DEADLINE_KEY, deadline);
6565
map.put(ENCODE_JSON_REQUEST_IP_KEY, requestIp);

0 commit comments

Comments
 (0)