示例#1
0
def finish(request):
    from_char_id = int(request.POST['from_char_id'])
    from_char_name = request.POST['from_char_name']
    to_char_id = int(request.POST['to_char_id'])
    from_win = request.POST['from_win'] == '1'
    standard_drop = json.loads(request.POST['standard_drop'])

    affairs = Affairs(to_char_id)
    affairs.got_plundered(from_char_id, from_char_name, from_win,
                          standard_drop)

    return {
        'ret': 0,
    }
示例#2
0
def _plunder_finished(from_char_id, to_char_id, from_win, standard_drop, **kwargs):
    affairs = Affairs(to_char_id)
    affairs.got_plundered(from_char_id, from_win, standard_drop)