mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-06 16:07:06 +08:00
Modified: error text for OSS
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user