修复bug
This commit is contained in:
@@ -129,13 +129,9 @@ namespace WMS.Web.Repositories
|
||||
};
|
||||
if (!string.IsNullOrEmpty(s.SalBillNo))
|
||||
{
|
||||
Random rd = new Random();
|
||||
var list = JsonConvert.DeserializeObject<List<string>>(s.SalBillNo);
|
||||
if (list.Count() > 0)
|
||||
{
|
||||
int index = rd.Next(0, list.Count);
|
||||
respone.SalBillNo = list[index];
|
||||
}
|
||||
respone.SalBillNo = list[0];
|
||||
}
|
||||
|
||||
return respone;
|
||||
|
||||
Reference in New Issue
Block a user