From 26481ff28459231479023b4fb2fbea08130991de Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Thu, 15 Jun 2023 17:44:18 +0800 Subject: [PATCH] update --- cmd/v2/lib/pb/protocol.go | 13 +++++++------ cmd/v2/ui/views/smithy.go | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cmd/v2/lib/pb/protocol.go b/cmd/v2/lib/pb/protocol.go index fdc566a..b7d4465 100644 --- a/cmd/v2/lib/pb/protocol.go +++ b/cmd/v2/lib/pb/protocol.go @@ -28,7 +28,7 @@ import ( var ( CaseIndex = map[string][]string{ "": { - string("gm"), + "gm", // string(comm.ModuleSys), // string(comm.ModuleUser), // string(comm.ModuleHero), @@ -43,12 +43,12 @@ var ( // string(comm.ModuleRtask), // string(comm.ModuleLinestory), // string(comm.ModuleGourmet), - string("sociaty"), + "sociaty", // string(comm.ModuleTroll), // string(comm.ModuleGrowtask), - string("worldtask"), + "worldtask", // string(comm.ModuleReddot), - string("smithy"), + "smithy", // string(comm.ModuleDispatch), // string(comm.ModuleReputation), // string(comm.ModuleOldtimes), @@ -194,6 +194,7 @@ var ( // NavLabel: "红点", // MainType: string(comm.ModuleReddot), // Enabled: true, + // }, // common.MF(comm.ModuleReddot, "get"): { // Desc: "红点", @@ -804,13 +805,13 @@ var ( // smithy string("smithy"): { NavLabel: "铁匠铺", - MainType: string("smithy"), + MainType: "smithy", Enabled: true, }, common.MF("smithy", "tasklist"): { NavLabel: "任务", Desc: "当前铁匠铺中的顾客", - MainType: string("smithy"), + MainType: "smithy", SubType: "tasklist", Enabled: true, }, diff --git a/cmd/v2/ui/views/smithy.go b/cmd/v2/ui/views/smithy.go index 6619c74..776478d 100644 --- a/cmd/v2/ui/views/smithy.go +++ b/cmd/v2/ui/views/smithy.go @@ -34,7 +34,7 @@ func (s *SmithyView) CreateView(t *model.TestCase) fyne.CanvasObject { jiaoyi := func() { if err := service.GetPttService().SendToClient( t.MainType, - "jiaoyi", + "sell", &pb.SmithySellReq{ EquipIds: []string{}, CustomerId: 1,