Esempio n. 1
0
def closeInstance_1502(dynamicId,request_proto):
    '''关闭副本'''
    argument= escInstance_pb2.escInstanceRequest()
    response = escInstance_pb2.escInstanceResponse()
    argument.ParseFromString(request_proto)
    characterId=argument.id #用户角色Id
    data=instance_app.closeInstance(dynamicId,characterId)
    response.result=data.get('result',False)
    response.message=data.get('message',u'')
    return response.SerializeToString()
Esempio n. 2
0
def closeInstance_1502(dynamicId, request_proto):
    '''关闭副本'''
    argument = escInstance_pb2.escInstanceRequest()
    response = escInstance_pb2.escInstanceResponse()
    argument.ParseFromString(request_proto)
    characterId = argument.id  #用户角色Id
    data = instance_app.closeInstance(dynamicId, characterId)
    response.result = data.get('result', False)
    response.message = data.get('message', u'')
    return response.SerializeToString()
Esempio n. 3
0
def iteranceInstances_1505(dynamicId,request_proto):
    '''重打副本'''
    argument=escInstance_pb2.escInstanceRequest()
    argument.ParseFromString(request_proto)
    response=escInstance_pb2.escInstanceResponse()
    characterId=argument.id #队长角色Id
    data=instance_app.iteranceInstance(characterId)
    response.result=data.get('result',False)
    response.message=data.get('message',u'')
    if data.get('data',None):
        response.data.placeId=data.get('data').get('placeId',-1)
    return response.SerializeToString()
Esempio n. 4
0
def iteranceInstances_1505(dynamicId, request_proto):
    '''重打副本'''
    argument = escInstance_pb2.escInstanceRequest()
    argument.ParseFromString(request_proto)
    response = escInstance_pb2.escInstanceResponse()
    characterId = argument.id  #队长角色Id
    data = instance_app.iteranceInstance(characterId)
    response.result = data.get('result', False)
    response.message = data.get('message', u'')
    if data.get('data', None):
        response.data.placeId = data.get('data').get('placeId', -1)
    return response.SerializeToString()