Commit 2e99b99b authored by 李尚科's avatar 李尚科

tool oss signature

parent e593c953
......@@ -367,7 +367,7 @@ class ToolController extends Controller {
const expire = 120;
let end = now + expire;
let expiration = new Date().toISOString().replace(/\..+/, '') + 'Z';
let expiration = new Date(new Date().valueOf() + expire * 1000).toISOString().replace(/\..+/, '') + 'Z';
let dir = 'images/house/house_analysis/';
......@@ -404,6 +404,7 @@ class ToolController extends Controller {
policy: base64_policy,
signature: signature,
expire: end,
expiration,
// config: config,
dir
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment