SVN-Revision: r560
This commit is contained in:
wyf
2025-05-08 12:18:46 +00:00
parent b9d43a840b
commit cf61285253
+4 -2
View File
@@ -2986,8 +2986,10 @@ namespace Lskj.Control.Model
string webpath = HttpUtility.UrlEncode(deleteRow["webpath"] + "");
//删除文件
string deleteUrl = "{0}Api/FileUploadApi.ashx?fileId={1}&filename={2}&method={3}";
deleteUrl = string.Format(deleteUrl, SystemInfo.Instance.OAUrl, field, webpath, "DoDelete");
UploadFileUtil.DeleteFile(token, deleteUrl, out string deleteRtnMsg);
HttpHelper.Setting("application/x-www-form-urlencoded", null, null);
Dictionary<string, string> deleteHeaderDic = new Dictionary<string, string>();
deleteHeaderDic.Add("Authorization", $"Bearer {token}");
HttpHelper.Post(deleteUrl, "", null, deleteHeaderDic, out string deleteResult);
}
}
byte[] fileBytes = UploadFileUtil.ConvertFileToBytes(filePath);