diff --git a/static/js/project/user/index.js b/static/js/project/user/index.js index 0f6cfbe..57e50f8 100644 --- a/static/js/project/user/index.js +++ b/static/js/project/user/index.js @@ -470,13 +470,13 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", if(type == 'user'||type == 'company'){ if(module.data.memberType == '1'){ $('#cupload-3').find('input').each(function() { - if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ + if($(this).val()!=''&&$(this).val().indexOf('/api') == -1){ module.data.upType1 = true; tools.doPostImg(base64Upload, {file:$(this).val()}, module.upLoadOverInfo1); } }) $('#cupload-4').find('input').each(function() { - if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ + if($(this).val()!=''&&$(this).val().indexOf('/api') == -1){ module.data.upType2 = true; tools.doPostImg(base64Upload, {file:$(this).val()}, module.upLoadOverInfo2); } @@ -488,19 +488,19 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", }else{ $('#cupload-5').find('input').each(function() { - if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ + if($(this).val()!=''&&$(this).val().indexOf('/api') == -1){ module.data.upType5 = true; tools.doPostImg(base64Upload, {file:$(this).val()}, module.upLoadOverInfo5); } }) $('#cupload-6').find('input').each(function() { - if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ + if($(this).val()!=''&&$(this).val().indexOf('/api') == -1){ module.data.upType6 = true; tools.doPostImg(base64Upload, {file:$(this).val()}, module.upLoadOverInfo6); } }) $('#cupload-7').find('input').each(function() { - if($(this).val()!=''&&$(this).val().indexOf('http') == -1){ + if($(this).val()!=''&&$(this).val().indexOf('/api') == -1){ module.data.upType7 = true; tools.doPostImg(base64Upload, {file:$(this).val()}, module.upLoadOverInfo7); }