|
|
@@ -48,9 +48,6 @@ namespace HKCardOUT.Logic |
|
|
|
/// </summary> |
|
|
|
public static void SyncTime() |
|
|
|
{ |
|
|
|
/* |
|
|
|
{"statusCode":200,"data":{"isSuccess":true,"msg":null,"data":{"amStartTime":"17:50","amEndTime":"17:50","pmStartTime":"17:50","pmEndTime":"17:50","atStartTime":"17:50","atEndTime":"17:50"}},"succeeded":true,"errors":null,"extras":null,"timestamp":1665654784093} |
|
|
|
*/ |
|
|
|
var data = IHttpMultiClient.HttpMulti.AddNode(t => |
|
|
|
{ |
|
|
|
t.NodePath = ApiRoute.GetTime; |
|
|
@@ -141,5 +138,24 @@ namespace HKCardOUT.Logic |
|
|
|
DataBus.StoreInfo = SyncStatic.ReadFile(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "StoreInfo.json")).ToModel<StoreInfoResponse>(); |
|
|
|
} |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 获取菜单 |
|
|
|
/// </summary> |
|
|
|
public static void GetFoodMenus() |
|
|
|
{ |
|
|
|
var dtos = new FoodDto |
|
|
|
{ |
|
|
|
GateFood = new List<SubFoodDto>() |
|
|
|
}; |
|
|
|
SubFoodDto dto1 = new SubFoodDto |
|
|
|
{ |
|
|
|
GateId = "2edbe98d-019c-4c3c-87d8-6876aa866233", |
|
|
|
Foods = new List<string> { |
|
|
|
"红烧狮子头","蒜苔肉丝","回锅肉","蒜泥白肉","炒白菜","炒茄子" |
|
|
|
} |
|
|
|
}; |
|
|
|
dtos.GateFood.Add(dto1); |
|
|
|
DataBus.Menu = dtos; |
|
|
|
} |
|
|
|
} |
|
|
|
} |