Modified: error text for OSS

This commit is contained in:
Molunerfinn
2018-07-07 00:31:53 +08:00
parent 1faf29732c
commit f494e1486c
+1 -9
View File
@@ -8,13 +8,6 @@ let client
// generate OSS Options // generate OSS Options
const generateOSSOptions = () => { const generateOSSOptions = () => {
const options = db.read().get('picBed.aliyun').value() const options = db.read().get('picBed.aliyun').value()
let obj = {
region: `${options.area}`,
accessKeyId: `${options.accessKeyId}`,
accessKeySecret: `${options.accessKeySecret}`,
bucket: `${options.bucket}`,
secure: true
}
client = new OSS({ client = new OSS({
region: `${options.area}`, region: `${options.area}`,
accessKeyId: `${options.accessKeyId}`, accessKeyId: `${options.accessKeyId}`,
@@ -22,7 +15,6 @@ const generateOSSOptions = () => {
bucket: `${options.bucket}`, bucket: `${options.bucket}`,
secure: true secure: true
}) })
console.log(obj)
return client return client
} }
@@ -65,7 +57,7 @@ const aliYunUpload = async (img, type, webContents) => {
webContents.send('uploadProgress', -1) webContents.send('uploadProgress', -1)
const notification = new Notification({ const notification = new Notification({
title: '上传失败!', title: '上传失败!',
body: `请检查你的配置` body: `请检查你的配置项是否正确`
}) })
notification.show() notification.show()
clipboard.writeText('https://cloud.tencent.com/document/product/436/8432') clipboard.writeText('https://cloud.tencent.com/document/product/436/8432')