Commit 996bb819 authored by 成旭东's avatar 成旭东

fix

parent 123767d6
Pipeline #28210 passed with stage
in 4 minutes 21 seconds
......@@ -23,7 +23,7 @@ export default class OssController extends Controller {
],
});
const policy = new Buffer(json).toString('base64');
const signature = ctx.oss.get('media').signature(policy);
ctx.success({ res: { policy, signature, OSSAccessKeyId: 'LTAIRRW7SbrqKUIJ' } });
const signature = ctx.oss.get('wafang').signature(policy);
ctx.success({ res: { policy, signature, OSSAccessKeyId: 'LTAI4G4MVksbyK6C1RzXv9L5' } });
}
}
......@@ -92,6 +92,13 @@ export default (appInfo: { name: string; }) => {
endpoint: 'oss-cn-hangzhou.aliyuncs.com',
timeout: '60s',
},
wafang: {
accessKeyId: 'LTAI4G4MVksbyK6C1RzXv9L5',
accessKeySecret: 'Yaix3Wjv7AwUTnESdXVdG6eq7rmF0M',
bucket: 'wafang',
endpoint: 'oss-cn-hangzhou.aliyuncs.com',
timeout: '60s',
},
},
};
......
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