Added: smms picbed

This commit is contained in:
Molunerfinn
2018-06-04 21:30:36 +08:00
parent 1b8400a458
commit ffbbc74734
6 changed files with 140 additions and 31 deletions

View File

@@ -3,6 +3,7 @@ import qiniuUpload from './qiniuUpload'
import tcYunUpload from './tcYunUpload'
import upYunUpload from './upYunUpload'
import githubUpload from './githubUpload'
import smmsUpload from './smmsUpload'
import db from '../../datastore/index'
import { Notification } from 'electron'
@@ -34,6 +35,8 @@ const uploader = (img, type, webContents) => {
return upYunUpload(img, type, webContents)
case 'github':
return githubUpload(img, type, webContents)
case 'smms':
return smmsUpload(img, type, webContents)
}
} else {
return false