mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update upload.js
This commit is contained in:
parent
dd1e26e25c
commit
4a6040edb9
@ -28,12 +28,11 @@ define(['md5'], function (SparkMD5, allowExtsMimes) {
|
||||
if (ret.code === 404) {
|
||||
uploader.config.data.safe = safe;
|
||||
uploader.config.url = ret.data.server;
|
||||
uploader.config.data.key = ret.data.xkey;
|
||||
if (ret.data.uptype === 'qiniu') {
|
||||
uploader.config.data.key = ret.data.xkey;
|
||||
uploader.config.data.token = ret.data.token;
|
||||
}
|
||||
if (ret.data.uptype === 'alioss') {
|
||||
uploader.config.data.key = ret.data.xkey;
|
||||
uploader.config.data.policy = ret.data.policy;
|
||||
uploader.config.data.signature = ret.data.signature;
|
||||
uploader.config.data.OSSAccessKeyId = ret.data.OSSAccessKeyId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user