Skip to content

Commit

Permalink
修改 token 过期时间,减少构建失败几率
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid authored Jun 12, 2018
1 parent 6beea3c commit 0183ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# 上传到七牛后保存的文件名
key = 'Minecraft-Mod-Language-Modpack.zip';
# 生成上传 Token,可以指定过期时间等
token = q.upload_token(bucket_name, key, 600)
token = q.upload_token(bucket_name, key, 30)
# 要上传文件的本地路径
localfile = './Minecraft-Mod-Language-Modpack.zip'
ret, info = qiniu.put_file(token, key, localfile)
Expand Down

0 comments on commit 0183ac8

Please sign in to comment.