コード例 #1
0
ファイル: charge.py プロジェクト: ShooterTT/gringotts
def charge_account(project_id, value, type, come_from):
    body = dict(value=value,
                type=type,
                come_from=come_from,
                remarks="guangyu")
    client.put('/accounts/%s' % project_id, body=body)
コード例 #2
0
ファイル: coupon.py プロジェクト: ShooterTT/gringotts
def dispatch_coupon(code, remarks):
    if remarks:
        _body = dict(remarks=remarks)
        client.put('/precharge/%s/dispatched' % code, body=_body)
コード例 #3
0
ファイル: level.py プロジェクト: zhaozhilong1993/gringotts
def change_account_level(project_id, level):
    body = dict(level=level)
    client.put('/accounts/%s/level' % project_id, body=body)
コード例 #4
0
ファイル: level.py プロジェクト: unitedstack/gringotts
def change_account_level(project_id, level):
    body = dict(level=level)
    client.put("/accounts/%s/level" % project_id, body=body)
コード例 #5
0
def dispatch_coupon(code, remarks):
    if remarks:
        _body = dict(remarks=remarks)
        client.put('/precharge/%s/dispatched' % code, body=_body)
コード例 #6
0
ファイル: create.py プロジェクト: zhaozhilong1993/gringotts
def charge_account(user_id, value, type, come_from):
    body = dict(value=value, type=type, come_from=come_from)
    client.put('/accounts/%s' % user_id, body=body)
コード例 #7
0
ファイル: create.py プロジェクト: ShooterTT/gringotts
def charge_account(user_id, value, type, come_from):
    body = dict(value=value,
                type=type,
                come_from=come_from)
    client.put('/accounts/%s' % user_id, body=body)
コード例 #8
0
def charge_account(project_id, value, type, come_from):
    body = dict(value=value, type=type, come_from=come_from, remarks="guangyu")
    client.put('/accounts/%s' % project_id, body=body)