def pushPromptedMessageByCharacter(msg ,sendList):
    '''推送其他提示信息'''
    from app.scense.protoFile import PromptedMessage_pb2
    response = PromptedMessage_pb2.PromptedMessage()
    try:
        response.prompted = msg
    except Exception:
        response.prompted = unicode(msg,'gbk')
    data = response.SerializeToString()
    pushObjectByCharacterId(2200,data,sendList)
Beispiel #2
0
def pushMailArrived(characterId):
    """推送邮件到达消息"""

    response = PromptedMessage_pb2.PromptedMessage()
    try:
        msg = Lg().g(365)
        response.prompted = msg
    except Exception:
        response.prompted = unicode(msg, "gbk")
    data = response.SerializeToString()
    _msg = NewMailInfoShow506_pb2.NewMailInfoShowResponse()
    mmsg = _msg.SerializeToString()
    pushObjectByCharacterId(506, mmsg, [characterId])
    pushObjectByCharacterId(2200, data, [characterId])
Beispiel #3
0
def pushMailArrived(characterId):
    '''推送邮件到达消息'''

    response = PromptedMessage_pb2.PromptedMessage()
    try:
        msg = Lg().g(365)
        response.prompted = msg
    except Exception:
        response.prompted = unicode(msg, 'gbk')
    data = response.SerializeToString()
    _msg = NewMailInfoShow506_pb2.NewMailInfoShowResponse()
    mmsg = _msg.SerializeToString()
    pushObjectByCharacterId(506, mmsg, [characterId])
    pushObjectByCharacterId(2200, data, [characterId])