hch
2025-05-16 946db00eef78774ffed337714aebae76128c67bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
# ÍⲿÏûÏ¢´¦Àí£¬ÈçGMÃüÁ¿ç·þ£¬·ÇÍæ¼Ò·â°ü
#-------------------------------------------------------------------------------
 
from Common import (mylog)
from Protocol import MMORPGPack
from DBCommon import (error, )
from Common import CommFunc
import PyGameData
import GameWorld
 
def RecvPackToMapDB(packBuff):
    pack =  MMORPGPack.MMORPGPacket()
    pack.readData(packBuff)
    if pack is None:
        msg = error.formatMsg('error', error.ERROR_NO_46, 'pack is None')
        mylog.error(msg)
        return False
    if pack.getLength() < 1:
        msg = error.formatMsg('error', error.ERROR_NO_47, 'pack.getLength() < 1 pack head = %s'%pack.getPackHead().outputString())            
        mylog.error(msg)
        return False
 
    #GameWorld.Log("RecvPackToMapDB packlen %s"%len(packBuff))
    PyGameData.g_usrCtrlDB.requestLogicProcess(pack)