|
@@ -49,6 +49,7 @@ require(['upload'], function (Upload) {
|
|
|
ret = typeof response === 'string' ? JSON.parse(response) : response;
|
|
|
if (file.xhr.status === 200) {
|
|
|
if (typeof ret.key !== 'undefined') {
|
|
|
+ console.log(Config.upload,1111)
|
|
|
ret = {code: 1, msg: "", data: {url: '/' + ret.key, hash: ret.hash}};
|
|
|
}
|
|
|
Fast.api.ajax({
|
|
@@ -63,6 +64,7 @@ require(['upload'], function (Upload) {
|
|
|
} catch (e) {
|
|
|
console.error(e);
|
|
|
}
|
|
|
+ ret.data.url= Config.upload.cdnurl + ret.data.url
|
|
|
_success.call(this, file, ret);
|
|
|
});
|
|
|
|