Commit 16f4fb6c by 谭新宇

上传添加第三方接口

parent c335fd2b
......@@ -595,14 +595,19 @@ function uploadFileFn(file) {
var _header = {
'x-token': getToken()
}
var authUrl = ""
if(authId !== null) {
_header['auth_id'] = authId
authUrl = 'http://auth.icaremgt.com/api-admin-manage/system/components/upload?auth_id='+authId;
} else {
authUrl = manageUrl + '/api-admin-manage/system/components/upload';
}
$.ajax({
type: 'POST',
headers: _header,
url: manageUrl + '/api-admin-manage/system/components/upload',
url: authUrl,
data: formData,
contentType: false,
processData: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment