Explorar o código

fix:协议数据没转为美元

LAPTOP-PC6VHEF0\XIONGHUY hai 1 ano
pai
achega
4a7deb5ecc
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      RO_Server_Trunk-branch_0.1.39/roserver/game/model/role.go

+ 4 - 0
RO_Server_Trunk-branch_0.1.39/roserver/game/model/role.go

@@ -1260,6 +1260,10 @@ func (this *Role) StartupProto() {
 	ntfMsg.RoleWishBox = &serverproto.RoleWish{}
 	this.roleWish.CopyData(ntfMsg.RoleWishBox)
 
+	// 特殊处理
+	ntfMsg.RoleBase.BtJiaDayRecharge = int32(float32(ntfMsg.RoleBase.BtJiaDayRecharge) * BTJiaChangeDollar)
+	ntfMsg.RoleBase.BtJiaTotalRecharge = uint64(float32(ntfMsg.RoleBase.BtJiaTotalRecharge) * BTJiaChangeDollar)
+
 	//分成多条协议进行发送
 	sendLen := this.ReplayGate(ntfMsg, true)
 	ntfMsg = &serverproto.SCStartupInfoNtf{