瀏覽代碼

修改跨服活动-战场之魂排行榜充值积分错误问题

gitxsm 2 月之前
父節點
當前提交
9a0be8e7b0
共有 1 個文件被更改,包括 10 次插入7 次删除
  1. 10 7
      script/module/serverCommerce/ServerCommerceManager.lua

+ 10 - 7
script/module/serverCommerce/ServerCommerceManager.lua

@@ -722,13 +722,16 @@ function onCharge(human, price, funcID, buyID)
         end
     end
 
-    local tBuyCfg = BuyConf.buy[buyID]
-    if tBuyCfg then
-        local region = human.region or "CN"
-        local nPoint = tBuyCfg[region]
-        CommerveManager_AddServerPoint(nPoint)
-        CommerveManager_AddHumanPint(human, nPoint)
-    end
+    -- local tBuyCfg = BuyConf.buy[buyID]
+    -- if tBuyCfg then
+    --     local region = human.region or "CN"
+    --     local nPoint = tBuyCfg[region]
+    --     CommerveManager_AddServerPoint(nPoint)
+    --     CommerveManager_AddHumanPint(human, nPoint)
+    -- end
+
+        CommerveManager_AddServerPoint(price)
+        CommerveManager_AddHumanPint(human, price)
 end
 
 -- 增加整个服务器的点数