This commit is contained in:
jl
2025-06-24 15:46:02 +08:00
parent 618028296e
commit 7ef2bbeb19
3 changed files with 28 additions and 17 deletions

View File

@ -95,7 +95,7 @@ namespace Epost.DAL
public bool FORMAT_DEVICE(LabelParamModel model)
{
model.Address = "9999";
model.Address = model.Address;
model.Command = "FORMAT_DEVICE";
model.Parameter = "";
model.Timeout = "0.5";
@ -590,7 +590,17 @@ namespace Epost.DAL
sendModel.Address = model.Address;
sendModel.Command = model.Command;
sendModel.Parameter = model.Parameter;
sendModel.Timeout = model.Timeout;
sendModel.Uid = model.Uid;
sendModel.Quantity = model.Quantity;
sendModel.Title = model.Title;
sendModel.Content = model.Content;
sendModel.Type = model.Type;
sendModel.Mode = model.Mode;
sendModel.Order = model.Order;
sendModel.Unit = model.Unit;
sendModel.W_unit = model.W_unit;
sendModel.W_quantity = model.W_quantity;
sendModel.Loc = model.Loc;
try
{
string postStr = JsonHelper.SerializeObject(sendModel);