Skip to content

Commit

Permalink
Merge pull request #1000 from longguikeji/feature-rent
Browse files Browse the repository at this point in the history
fix: 🐛 order extension
  • Loading branch information
luolu-lg authored Jul 5, 2022
2 parents 27262f9 + 68f5b47 commit 604b2c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arkid/common/arkstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_arkstore_extensions(access_token, purchased=None, type=None, offset=0, l


def purcharse_arkstore_extension(access_token, extension_id, data):
order_url = settings.ARKSTOER_URL + f'/api/v1/arkstore/extensions/{extension_id}/order'
order_url = settings.ARKSTOER_URL + f'/api/v1/arkstore/extensions/{extension_id}/purchase'
headers = {'Authorization': f'Token {access_token}'}
params = data
resp = requests.post(order_url, json=params, headers=headers)
Expand Down Expand Up @@ -159,7 +159,7 @@ def get_arkstore_extension_detail_by_package(access_token, package):


def get_arkstore_extension_price(access_token, extension_id):
arkstore_extensions_url = settings.ARKSTOER_URL + f'/api/v1/arkstore/extensions/{extension_id}/order'
arkstore_extensions_url = settings.ARKSTOER_URL + f'/api/v1/arkstore/extensions/{extension_id}/purchase'
headers = {'Authorization': f'Token {access_token}'}
params = {}
resp = requests.get(arkstore_extensions_url, params=params, headers=headers)
Expand Down

0 comments on commit 604b2c4

Please sign in to comment.