Browse Source

Fix bug: access wrong key

master
PCoder 3 years ago
parent
commit
5e4b105b97
  1. 2
      ucloud_pay.py

2
ucloud_pay.py

@ -81,7 +81,7 @@ class ListProducts(Resource):
product_id = p.key[p.key.rindex("/")+1:]
actual_product = {
"name": p_json["name"],
"description": p_json["product_description"],
"description": p_json["description"],
"product_id": product_id,
"pricing": get_pricing(p_json["price"], p_json["type"],
p_json["recurring_duration"]),

Loading…
Cancel
Save