From 7f0db52213627a0c403a4952cc3ae36c644e0f02 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 22 Sep 2022 22:45:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=81=8A=E5=A4=A9=E8=B6=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/chat/module.go | 2 +- modules/equipment/api_upgrade.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/chat/module.go b/modules/chat/module.go index 5f66ac326..db70e1ef7 100644 --- a/modules/chat/module.go +++ b/modules/chat/module.go @@ -129,7 +129,7 @@ func (this *Chat) SendSysChatToWorld(ctype comm.ChatSystemType, appenddata inter data := map[string]interface{}{ "0": map[string]interface{}{ "key": "0", - "appendStr": jsonStr, + "appendStr": string(jsonStr), "itemType": pb.ChatType_EquipmentShare, }, } diff --git a/modules/equipment/api_upgrade.go b/modules/equipment/api_upgrade.go index 287129aef..2c21eb87d 100644 --- a/modules/equipment/api_upgrade.go +++ b/modules/equipment/api_upgrade.go @@ -185,7 +185,7 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.EquipmentUpgrade if user = this.module.ModuleUser.GetUser(session.GetUserId()); user != nil { var color *cfg.GameGameColorData if color, err = this.module.configure.GetColor(conf.Color); err == nil { - this.module.chat.SendSysChatToWorld(comm.EquipmentUpgradeNotice, equipment, equipment.Lv, fmt.Sprintf("[color=%s]%s[/color]", color.Color, user.Name), conf.Name) + this.module.chat.SendSysChatToWorld(comm.EquipmentUpgradeNotice, equipment, equipment.Lv, user.Name, fmt.Sprintf("[color=%s]%s[/color]", color.Color, conf.Name)) } else { this.module.Errorf("GetColor err:%s", err.Error()) }