上传聊天超链接

This commit is contained in:
liwei1dao 2022-09-22 22:45:09 +08:00
parent 45aa790e69
commit 7f0db52213
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ func (this *Chat) SendSysChatToWorld(ctype comm.ChatSystemType, appenddata inter
data := map[string]interface{}{ data := map[string]interface{}{
"0": map[string]interface{}{ "0": map[string]interface{}{
"key": "0", "key": "0",
"appendStr": jsonStr, "appendStr": string(jsonStr),
"itemType": pb.ChatType_EquipmentShare, "itemType": pb.ChatType_EquipmentShare,
}, },
} }

View File

@ -185,7 +185,7 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.EquipmentUpgrade
if user = this.module.ModuleUser.GetUser(session.GetUserId()); user != nil { if user = this.module.ModuleUser.GetUser(session.GetUserId()); user != nil {
var color *cfg.GameGameColorData var color *cfg.GameGameColorData
if color, err = this.module.configure.GetColor(conf.Color); err == nil { if color, err = this.module.configure.GetColor(conf.Color); err == nil {
this.module.chat.SendSysChatToWorld(comm.EquipmentUpgradeNotice, equipment, equipment.Lv, fmt.Sprintf("<a href='{0}'>[color=%s]%s[/color]</a>", color.Color, user.Name), conf.Name) this.module.chat.SendSysChatToWorld(comm.EquipmentUpgradeNotice, equipment, equipment.Lv, user.Name, fmt.Sprintf("<a href='0'>[color=%s]%s[/color]</a>", color.Color, conf.Name))
} else { } else {
this.module.Errorf("GetColor err:%s", err.Error()) this.module.Errorf("GetColor err:%s", err.Error())
} }