Commit fbc12c07 authored by 黄奎's avatar 黄奎

新增重复验证

parent 8b54765f
......@@ -2019,8 +2019,10 @@ namespace Mall.WebApi.Controllers.TradePavilion
};
demodel.MallBaseId = RequestParm.MallBaseId;
demodel.TenantId = RequestParm.TenantId;
List<int> ExcelEnumIds = JsonConvert.DeserializeObject<List<int>>(parms.GetStringValue("ExcelEnumIds"));
string hashKey = Common.Config.GetHash(Common.Plugin.JsonHelper.Serialize(demodel) + parms.GetStringValue("ExcelEnumIds"));
string RandomNum = parms.GetStringValue("RandomNum");
string ExcelEnumIdsStr = parms.GetStringValue("ExcelEnumIds");
List<int> ExcelEnumIds = JsonConvert.DeserializeObject<List<int>>(ExcelEnumIdsStr);
string hashKey = Common.Config.GetHash(Common.Plugin.JsonHelper.Serialize(demodel) + ExcelEnumIdsStr + ExcelEnumIdsStr);
string fileName = "品牌信息" + ".xls";
string filePath = Path.Combine(Directory.GetCurrentDirectory(), "upfile/temporary");
if (System.IO.Directory.Exists(filePath) == false)//如果不存在就创建file文件夹
......@@ -2086,9 +2088,10 @@ namespace Mall.WebApi.Controllers.TradePavilion
};
demodel.MallBaseId = RequestParm.MallBaseId;
demodel.TenantId = RequestParm.TenantId;
List<int> ExcelEnumIds = JsonConvert.DeserializeObject<List<int>>(parms.GetStringValue("ExcelEnumIds"));
string hashKey = Common.Config.GetHash(Common.Plugin.JsonHelper.Serialize(demodel) + parms.GetStringValue("ExcelEnumIds"));
string RandomNum = parms.GetStringValue("RandomNum");
string ExcelEnumIdsStr = parms.GetStringValue("ExcelEnumIds");
List<int> ExcelEnumIds = JsonConvert.DeserializeObject<List<int>>(ExcelEnumIdsStr);
string hashKey = Common.Config.GetHash(Common.Plugin.JsonHelper.Serialize(demodel) + ExcelEnumIdsStr + RandomNum);
string fileName = "载体信息" + ".xls";
string filePath = Path.Combine(Directory.GetCurrentDirectory(), "upfile/temporary");
if (System.IO.Directory.Exists(filePath) == false)//如果不存在就创建file文件夹
......
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