SVN r623
SVN-Revision: r623
This commit is contained in:
@@ -38,6 +38,7 @@ using System.Net;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections;
|
||||
using Newtonsoft.Json;
|
||||
using System.Web;
|
||||
|
||||
namespace Lskj.Control
|
||||
{
|
||||
@@ -2080,7 +2081,6 @@ namespace Lskj.Control
|
||||
if (imageEdit != null)
|
||||
{
|
||||
int result = BaseModuleImpl.UpdateRecord(this.SysModel.MenuTable, imageEdit.Model.FieldName, "", this.PrimaryKey, this.PrimaryValue);
|
||||
|
||||
MessageUtil.Show(result > 0 ? ResourceKeys.OperSuccess : ResourceKeys.OperFault);
|
||||
}
|
||||
}
|
||||
@@ -2209,7 +2209,7 @@ namespace Lskj.Control
|
||||
string postUrl = "{0}Api/FileUploadApi.ashx?moduleId={1}&idValue={2}&folder={3}&totsize={4}&position={5}&filename={6}&method={7}";
|
||||
Dictionary<string, string> headerDic = new Dictionary<string, string>();
|
||||
headerDic.Add("Authorization", $"Bearer {token}");
|
||||
postUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, this.Model.ModuleCode, this.PrimaryValue, "UploadFilesTemp", fileBytes.Length, 0, Path.GetFileName(_imageEdit.CurrentImagePath), "DoWebUpload");
|
||||
postUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, this.Model.ModuleCode, this.PrimaryValue, "UploadFilesTemp", fileBytes.Length, 0, HttpUtility.UrlEncode($"{Guid.NewGuid()}_{Path.GetFileName(_imageEdit.CurrentImagePath)}"), "DoWebUpload");
|
||||
HttpTools.setting("application/x-www-form-urlencoded", null, null);
|
||||
HttpWebResponse webResponse = HttpTools.Post(postUrl, fileBase64Str, null, headerDic, HttpTools.Method.POST, out CookieCollection cookieCollection, out string result);
|
||||
if (webResponse != null && !string.IsNullOrEmpty(result))
|
||||
|
||||
Reference in New Issue
Block a user