From ea1ec0723d36ee1f493505ccdb81906bd009b27e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 29 十月 2019 16:57:41 +0800
Subject: [PATCH] 8315 【恺英】【后端】一键自动购买材料及拍品满概率升星

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerNewGuyCard.py |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerNewGuyCard.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerNewGuyCard.py
index 71ede4d..f32f5fa 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerNewGuyCard.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerNewGuyCard.py
@@ -187,7 +187,7 @@
     
     #给予物品
     itemID, itemCnt, isBand = itemInfo
-    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBand, [IPY_GameWorld.rptItem]):
+    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem]):
         #背包空间不足
         PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [IPY_GameWorld.rptItem])
         return True
@@ -238,7 +238,7 @@
     #给予物品
     itemID, itemCnt, isBand = itemInfo
     GameWorld.DebugLog("    itemInfo=%s" % str(itemInfo))
-    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBand, [IPY_GameWorld.rptItem]):
+    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem]):
         #背包空间不足
         PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [IPY_GameWorld.rptItem])
         return True
@@ -256,7 +256,7 @@
 #  @return 序号
 def CheckMarkIdCardRule(curPlayer, cardCode):
     idName = curPlayer.GetAccID()
-    platform = GameWorld.GetPlayerPlatform(idName)
+    platform = GameWorld.GetPlayerPlatform(curPlayer)
     platFormIdName = GameWorld.GetPlatformAccID(idName)
     markIdCardData = ReadChConfig.GetEvalChConfig("IDMarkCardData")
     for cardIndex, cardInfo in markIdCardData.items():
@@ -432,7 +432,7 @@
     
     #给予物品
     itemID, itemCnt, isBand = itemInfo
-    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBand, [IPY_GameWorld.rptItem]):
+    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem]):
         #背包空间不足
         PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [IPY_GameWorld.rptItem])
         return
@@ -505,7 +505,7 @@
         PlayerControl.NotifyCode(curPlayer, "GeRen_admin_327925")
         return
     
-    platform = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
+    platform = GameWorld.GetPlayerPlatform(curPlayer)
     MediaCardDict = ReadChConfig.GetEvalChConfig("MediaCard")
     commMediaCardDict, platformMediaCardDict = MediaCardDict
     
@@ -542,10 +542,9 @@
         isAppoint = itemInfo[3] if len(itemInfo) > 3 else 0
         
         if isAppoint:
-            isOK = ItemControler.GivePlayerAppointItem(curPlayer, itemID, itemBind, True, True)
+            isOK = ItemControler.GivePlayerAppointItem(curPlayer, itemID, False)
         else:
-            isOK = ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, itemBind, [IPY_GameWorld.rptItem],
-                                                True, showSysInfo=True)
+            isOK = ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem])
         if isOK:
             succGiveItemList.append(itemInfo)
             

--
Gitblit v1.8.0