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)
def dispatch_coupon(code, remarks): if remarks: _body = dict(remarks=remarks) client.put('/precharge/%s/dispatched' % code, body=_body)
def change_account_level(project_id, level): body = dict(level=level) client.put('/accounts/%s/level' % project_id, body=body)
def change_account_level(project_id, level): body = dict(level=level) client.put("/accounts/%s/level" % project_id, body=body)
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)