From 017e1849b25a46732e71ef1df93503f02f902092 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 20 十二月 2024 16:16:50 +0800
Subject: [PATCH] 1111 【英文】代金券获得跟支付提示支持两位小数;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index 033cd06..4d7de4c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -3280,7 +3280,7 @@
     #通知客户端失去金钱
     if isNotify:
         if type_Price == ShareDefine.TYPE_Price_PayCoin:
-            NotifyCode(curPlayer, "LostMoney", [type_Price, lostMoney/100])
+            NotifyCode(curPlayer, "LostMoney", [type_Price, str(round(lostMoney/100.0, 2))])
         else:
             NotifyCode(curPlayer, "LostMoney", [type_Price, lostMoney])
     return True
@@ -3553,7 +3553,7 @@
     if isSysHint and priceType != ShareDefine.TYPE_Price_BourseMoney:
         #通知客户端得到金钱
         if priceType == ShareDefine.TYPE_Price_PayCoin:
-            NotifyCode(curPlayer, "GetMoney", [priceType, value/100])
+            NotifyCode(curPlayer, "GetMoney", [priceType, str(round(value/100.0, 2))])
         else:
             NotifyCode(curPlayer, "GetMoney", [priceType, value])
     __GiveMoneyAfter(curPlayer, priceType, value, giveType, addDataDict)

--
Gitblit v1.8.0