update
This commit is contained in:
parent
c350ccba90
commit
9577fa1346
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.log
|
@ -132,12 +132,12 @@ var (
|
|||||||
// common.MF(comm.ModuleGourmet, "getranduser"),
|
// common.MF(comm.ModuleGourmet, "getranduser"),
|
||||||
},
|
},
|
||||||
"sociaty": {
|
"sociaty": {
|
||||||
// common.MF(comm.ModuleSociaty, sociaty.SociatySubTypeList),
|
common.MF("sociaty", "list"),
|
||||||
// common.MF(comm.ModuleSociaty, sociaty.SociatySubTypeCreate),
|
common.MF("sociaty", "create"),
|
||||||
common.MF("sociaty", "mine"),
|
common.MF("sociaty", "mine"),
|
||||||
common.MF("sociaty", "tasklist"),
|
common.MF("sociaty", "tasklist"),
|
||||||
// common.MF(comm.ModuleSociaty, sociaty.SociatySubTypeRank),
|
// common.MF("sociaty", sociaty.SociatySubTypeRank),
|
||||||
// common.MF(comm.ModuleSociaty, "boss"),
|
// common.MF("sociaty", "boss"),
|
||||||
},
|
},
|
||||||
"troll": {
|
"troll": {
|
||||||
// common.MF(comm.ModuleTroll, "getlist"),
|
// common.MF(comm.ModuleTroll, "getlist"),
|
||||||
@ -713,16 +713,13 @@ var (
|
|||||||
SubType: "create",
|
SubType: "create",
|
||||||
Enabled: true,
|
Enabled: true,
|
||||||
},
|
},
|
||||||
// common.MF(comm.ModuleSociaty, sociaty.SociatySubTypeList): {
|
common.MF("sociaty", "list"): {
|
||||||
// NavLabel: "公会推荐",
|
NavLabel: "公会推荐",
|
||||||
// Desc: "公会列表",
|
Desc: "公会列表",
|
||||||
// MainType: string(comm.ModuleSociaty),
|
MainType: "sociaty",
|
||||||
// SubType: sociaty.SociatySubTypeList,
|
SubType: "list",
|
||||||
// Enabled: true,
|
Enabled: true,
|
||||||
// Print: func(rsp proto.Message) string {
|
},
|
||||||
// return "不打印"
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
common.MF("sociaty", "mine"): {
|
common.MF("sociaty", "mine"): {
|
||||||
NavLabel: "我的公会",
|
NavLabel: "我的公会",
|
||||||
Desc: "我的公会",
|
Desc: "我的公会",
|
||||||
@ -737,17 +734,17 @@ var (
|
|||||||
SubType: "tasklist",
|
SubType: "tasklist",
|
||||||
Enabled: true,
|
Enabled: true,
|
||||||
},
|
},
|
||||||
// common.MF(comm.ModuleSociaty, sociaty.SociatySubTypeRank): {
|
// common.MF("sociaty", sociaty.SociatySubTypeRank): {
|
||||||
// NavLabel: "排行榜",
|
// NavLabel: "排行榜",
|
||||||
// Desc: "排行榜",
|
// Desc: "排行榜",
|
||||||
// MainType: string(comm.ModuleSociaty),
|
// MainType: string("sociaty"),
|
||||||
// SubType: sociaty.SociatySubTypeRank,
|
// SubType: sociaty.SociatySubTypeRank,
|
||||||
// Enabled: true,
|
// Enabled: true,
|
||||||
// },
|
// },
|
||||||
// common.MF(comm.ModuleSociaty, "boss"): {
|
// common.MF("sociaty", "boss"): {
|
||||||
// NavLabel: "BOSS",
|
// NavLabel: "BOSS",
|
||||||
// Desc: "BOSS",
|
// Desc: "BOSS",
|
||||||
// MainType: string(comm.ModuleSociaty),
|
// MainType: string("sociaty"),
|
||||||
// SubType: "boss",
|
// SubType: "boss",
|
||||||
// Enabled: true,
|
// Enabled: true,
|
||||||
// },
|
// },
|
||||||
|
@ -1,14 +1 @@
|
|||||||
{"level":"debug","msg":"app starting","time":"2023-06-09 21:54:05","version":"0.0.1"}
|
{"level":"debug","msg":"app starting","time":"2023-06-14 11:17:53","version":"0.0.1"}
|
||||||
{"level":"debug","msg":"choose server","server":"01区","sid":"dfz01","time":"2023-06-09 21:54:08"}
|
|
||||||
{"account":"6911","level":"debug","msg":"submit login","time":"2023-06-09 21:54:12"}
|
|
||||||
{"level":"info","mainType":"user","msg":"登录","params":{"account":"6911","sid":"dfz01","area":0,"channel":0,"vcode":0,"vname":""},"subType":"login","time":"2023-06-09 21:54:12"}
|
|
||||||
{"idx":2,"lbl":"昵称","level":"debug","msg":"更新Prop","time":"2023-06-09 21:54:12","val":"Piratemountain"}
|
|
||||||
{"id":"worldtask","level":"warning","msg":"Missing tutorial panel","time":"2023-06-09 21:54:14"}
|
|
||||||
{"id":"worldtask","level":"warning","msg":"Missing tutorial panel","time":"2023-06-09 21:54:14"}
|
|
||||||
{"id":"worldtask","level":"warning","msg":"Missing tutorial panel","time":"2023-06-09 21:54:14"}
|
|
||||||
{"id":"worldtask","level":"warning","msg":"Missing tutorial panel","time":"2023-06-09 21:54:14"}
|
|
||||||
{"id":"worldtask","level":"warning","msg":"Missing tutorial panel","time":"2023-06-09 21:54:14"}
|
|
||||||
{"id":"worldtask","level":"warning","msg":"Missing tutorial panel","time":"2023-06-09 21:54:15"}
|
|
||||||
{"level":"debug","mainType":"smithy","msg":"select","subType":"tasklist","time":"2023-06-09 21:54:15"}
|
|
||||||
{"level":"error","msg":"readMessage err:read tcp 10.0.0.238:14482-\u003e10.0.0.238:7891: wsarecv: An existing connection was forcibly closed by the remote host.","time":"2023-06-09 21:54:31"}
|
|
||||||
{"level":"debug","msg":"即将与服务器断开链接","time":"2023-06-09 21:54:32"}
|
|
||||||
|
@ -100,8 +100,8 @@ var (
|
|||||||
// gourmet
|
// gourmet
|
||||||
// common.MF(comm.ModuleGourmet, "getranduser"): &formview.GourmentGetRandView{},
|
// common.MF(comm.ModuleGourmet, "getranduser"): &formview.GourmentGetRandView{},
|
||||||
// sociaty
|
// sociaty
|
||||||
// common.MF(comm.ModuleSociaty, sociaty.SociatySubTypeList): &formview.SociatyListView{},
|
common.MF("sociaty", "list"): &formview.SociatyListView{},
|
||||||
// common.MF(comm.ModuleSociaty, sociaty.SociatySubTypeCreate): &formview.SociatyCreateView{},
|
common.MF("sociaty", "create"): &formview.SociatyCreateView{},
|
||||||
common.MF("sociaty", "mine"): &formview.SociatyMineView{},
|
common.MF("sociaty", "mine"): &formview.SociatyMineView{},
|
||||||
common.MF("sociaty", "tasklist"): &formview.SociatyTasklistView{},
|
common.MF("sociaty", "tasklist"): &formview.SociatyTasklistView{},
|
||||||
// common.MF(comm.ModuleSociaty, sociaty.SociatySubTypeRank): &formview.SociatyRankView{},
|
// common.MF(comm.ModuleSociaty, sociaty.SociatySubTypeRank): &formview.SociatyRankView{},
|
||||||
|
@ -41,8 +41,8 @@ func (app *SociatyCreateView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
ApplyLv: cast.ToInt32(applyLv.Text),
|
ApplyLv: cast.ToInt32(applyLv.Text),
|
||||||
}
|
}
|
||||||
if err := service.GetPttService().SendToClient(
|
if err := service.GetPttService().SendToClient(
|
||||||
string("sociaty"),
|
"sociaty",
|
||||||
"",
|
"create",
|
||||||
req,
|
req,
|
||||||
); err != nil {
|
); err != nil {
|
||||||
logrus.Error(err)
|
logrus.Error(err)
|
||||||
|
@ -45,8 +45,8 @@ func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
this.sociatyList = func() {
|
this.sociatyList = func() {
|
||||||
this.itemList.Reset()
|
this.itemList.Reset()
|
||||||
if err := service.GetPttService().SendToClient(
|
if err := service.GetPttService().SendToClient(
|
||||||
string("sociaty"),
|
"sociaty",
|
||||||
"",
|
"list",
|
||||||
&pb.SociatyListReq{}); err != nil {
|
&pb.SociatyListReq{}); err != nil {
|
||||||
logrus.Error(err)
|
logrus.Error(err)
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
logrus.Debugf("%s", selId)
|
logrus.Debugf("%s", selId)
|
||||||
if err := service.GetPttService().SendToClient(
|
if err := service.GetPttService().SendToClient(
|
||||||
t.MainType,
|
t.MainType,
|
||||||
"",
|
"apply",
|
||||||
&pb.SociatyApplyReq{
|
&pb.SociatyApplyReq{
|
||||||
SociatyId: selId,
|
SociatyId: selId,
|
||||||
},
|
},
|
||||||
@ -85,8 +85,8 @@ func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err := service.GetPttService().SendToClient(
|
if err := service.GetPttService().SendToClient(
|
||||||
string("sociaty"),
|
"sociaty",
|
||||||
"",
|
"applycancel",
|
||||||
&pb.SociatyApplyCancelReq{
|
&pb.SociatyApplyCancelReq{
|
||||||
SociatyId: selId,
|
SociatyId: selId,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
@ -108,8 +108,8 @@ func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
filter = pb.SociatyListFilter_APPLYING
|
filter = pb.SociatyListFilter_APPLYING
|
||||||
}
|
}
|
||||||
if err := service.GetPttService().SendToClient(
|
if err := service.GetPttService().SendToClient(
|
||||||
string("sociaty"),
|
"sociaty",
|
||||||
"",
|
"list",
|
||||||
&pb.SociatyListReq{
|
&pb.SociatyListReq{
|
||||||
Filter: filter,
|
Filter: filter,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
@ -128,8 +128,8 @@ func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
}
|
}
|
||||||
this.itemList.Reset()
|
this.itemList.Reset()
|
||||||
if err := service.GetPttService().SendToClient(
|
if err := service.GetPttService().SendToClient(
|
||||||
string("sociaty"),
|
"sociaty",
|
||||||
"",
|
"search",
|
||||||
&pb.SociatySearchReq{
|
&pb.SociatySearchReq{
|
||||||
Name: searchEntry.Text,
|
Name: searchEntry.Text,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
@ -153,8 +153,8 @@ func (this *SociatyListView) dataListener() {
|
|||||||
this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
|
this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
|
||||||
OnNotify: func(d interface{}, args ...interface{}) {
|
OnNotify: func(d interface{}, args ...interface{}) {
|
||||||
data := d.(*pb.UserMessage)
|
data := d.(*pb.UserMessage)
|
||||||
if data.MainType == string("sociaty") &&
|
if data.MainType == "sociaty" &&
|
||||||
data.SubType == "" {
|
data.SubType == "list" {
|
||||||
rsp := &pb.SociatyListResp{}
|
rsp := &pb.SociatyListResp{}
|
||||||
|
|
||||||
if !comm.ProtoUnmarshal(data, rsp) {
|
if !comm.ProtoUnmarshal(data, rsp) {
|
||||||
@ -181,8 +181,8 @@ func (this *SociatyListView) dataListener() {
|
|||||||
}
|
}
|
||||||
this.itemList.AddItem(item)
|
this.itemList.AddItem(item)
|
||||||
}
|
}
|
||||||
} else if data.MainType == string("sociaty") &&
|
} else if data.MainType == "sociaty" &&
|
||||||
data.SubType == "" {
|
data.SubType == "search" {
|
||||||
rsp := &pb.SociatySearchResp{}
|
rsp := &pb.SociatySearchResp{}
|
||||||
|
|
||||||
if !comm.ProtoUnmarshal(data, rsp) {
|
if !comm.ProtoUnmarshal(data, rsp) {
|
||||||
@ -222,8 +222,8 @@ func (this *SociatyListView) formdataListen(item *entryItem) {
|
|||||||
this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
|
this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
|
||||||
OnNotify: func(d interface{}, args ...interface{}) {
|
OnNotify: func(d interface{}, args ...interface{}) {
|
||||||
data := d.(*pb.UserMessage)
|
data := d.(*pb.UserMessage)
|
||||||
if !(data.MainType == string("sociaty") &&
|
if !(data.MainType == "sociaty" &&
|
||||||
data.SubType == "") {
|
data.SubType == "mine") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
rsp := &pb.SociatyMineResp{}
|
rsp := &pb.SociatyMineResp{}
|
||||||
|
Loading…
Reference in New Issue
Block a user