54545454
This commit is contained in:
@@ -229,9 +229,21 @@ namespace MyCode.Project.OutSideService.Implementation
|
||||
public string AddTiaoMa(string json)
|
||||
{
|
||||
List<AddTiaoMa> list = JsonHelper.ToObject<List<AddTiaoMa>>(json);
|
||||
List<string> barcodeList = new List<string>();
|
||||
List<AddTiaoMa> senList = new List<AddTiaoMa>();
|
||||
list.ForEach(t =>
|
||||
{
|
||||
if (!barcodeList.Contains(t.FBarCode))
|
||||
{
|
||||
t.FBarCodeRule = "01";
|
||||
senList.Add(t);
|
||||
barcodeList.Add(t.FBarCode);
|
||||
}
|
||||
});
|
||||
|
||||
AddTiaoMaConfig addconfig = new AddTiaoMaConfig();
|
||||
addconfig.Key = "qwe123!@#";
|
||||
addconfig.Items = list;
|
||||
addconfig.Items = senList;
|
||||
WebUtils webUtils = new WebUtils();
|
||||
string json2 = JsonHelper.ToJson(addconfig);
|
||||
string ServerUrl = ConfigurationManager.AppSettings.Get("TiaoMaUrl");
|
||||
|
||||
Reference in New Issue
Block a user