From 9a5d8288ba607bdcd67cb93e03c7f09ece8b1569 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 13 三月 2026 14:29:24 +0800
Subject: [PATCH] 556 【付费功能】时装商店-服务端(优化时装转化碎片时A801通知,封包修改货币增加IsBind,同物品标记逻辑,时装转化标记=40;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/RecvPackToMapDB.py |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/RecvPackToMapDB.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/RecvPackToMapDB.py
index 5748da7..190da97 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/RecvPackToMapDB.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/RecvPackToMapDB.py
@@ -26,15 +26,19 @@
         return False
 
     #GameWorld.Log("RecvPackToMapDB packlen %s"%len(packBuff))
+    if not PyGameData.g_usrCtrlDB:
+        return
     PyGameData.g_usrCtrlDB.requestLogicProcess(pack)
 
 
-# 地图自己调用处理DB数据,不一定要符合封包格式,PY根据功能自定义组成封包
+# 地图Python调用处理DB数据,不一定要符合封包格式,PY根据功能自定义组成封包
 def MapCallDB(packBuff, isBuffer = True):
     pack =  MMORPGPack.MMORPGPacket()
     if isBuffer:
         pack.setBuffer(packBuff)    # 只设置数据
     else:
         pack.readData(packBuff)     # 设置封包头 和 数据
-            
-    PyGameData.g_usrCtrlDB.requestLogicProcess(pack)
\ No newline at end of file
+    if not PyGameData.g_usrCtrlDB:
+        return
+    PyGameData.g_usrCtrlDB.requestLogicProcess(pack)
+    
\ No newline at end of file

--
Gitblit v1.8.0