Example #1
0
def purchase_aiyingyong_done(request):
    try:
        char_id = int(request.POST['char_id'])
        goods_id = int(request.POST['goods_id'])
    except:
        return {'ret': 1}

    p = PurchaseActioinAiyingyong(char_id)
    p.send_reward(goods_id)

    return {'ret': 0}
Example #2
0
def purchase_aiyingyong_done(request):
    try:
        char_id = int(request.POST["char_id"])
        goods_id = int(request.POST["goods_id"])
    except:
        return {"ret": 1}

    p = PurchaseActioinAiyingyong(char_id)
    p.send_reward(goods_id)

    return {"ret": 0}
Example #3
0
def purchase_aiyingyong_done(request):
    try:
        char_id = int(request.POST['char_id'])
        goods_id = int(request.POST['goods_id'])
    except:
        return {'ret': 1}

    p = PurchaseActioinAiyingyong(char_id)
    p.send_reward(goods_id)

    return {'ret': 0}