Browse Source

导入末端处理

lzk 3 days ago
parent
commit
771d918146

+ 1 - 1
5.Api/XYY.Api.Order/Controllers/MoreThanOneTicketMps/GetMoreThanOneTicketMpsController.cs

@@ -124,7 +124,7 @@ namespace XYY.Api.Order.Controllers
             {
                 var u = User.GetUserContent();
                 string userName = u.NiceName;
-                if (!u.Roles.Contains("FBA末端重量修改")) { throw new Exception("抱歉,您无权限进行此操作!"); }
+                if (!u.Roles.Contains("FBA末端重量修改")&&!u.Roles.Contains("FBA末端修改")) { throw new Exception("抱歉,您无权限进行此操作!"); }
                 var file = filelist[0];
                 var result = await orderService.ImportFBAChannelOrder(file.OpenReadStream());
                 return Ok(result);