Ejemplo n.º 1
0
def getMatchSummaryById(request):
    if request.method  == 'GET':
        _matchRet = getMatchDetailInfo(request.GET)
        if _matchRet['status'] == 'failed':
            return process_ret_status(_matchRet)
#        print _matchRet
        matchInfo = _matchRet['result']
        matchInfo = enrichUserInfo(matchInfo, 'allies')
        matchInfo = enrichUserInfo(matchInfo, 'rebels')
        _matchRet['result'] = matchInfo
        return process_ret_status(_matchRet)
    return json_response(failed_response("操作不支持"))
Ejemplo n.º 2
0
def getMatchDetail(request):
    if request.method  == 'GET':
        _ret = getMatchDetailInfo(request.GET)
        return process_ret_status(_ret)
    return json_response(failed_response("操作不支持"))