Commit c7cc1039 by Aeolus

update

parent 3d3f02d9
......@@ -58,10 +58,10 @@ def create_rent():
left_count = count
for i in hatch_list:
if i.left_count <= left_count:
hatch_no_dict = {i.hatch_no: i.left_count}
hatch_no_dict = {str(i.hatch_no): i.left_count}
left_count = left_count - i.left_count
else:
hatch_no_dict = {i.hatch_no: left_count}
hatch_no_dict = {str(i.hatch_no): left_count}
left_count = 0
open_hatchs.append(hatch_no_dict)
if left_count <= 0:
......@@ -184,7 +184,7 @@ def wx_pay_callback():
rent_detail.brand_name = i.brand_name
rent_detail.cate_id = i.cate_id
rent_detail.cate_name = i.cate_name
rent_detail.price = i.price * open_hatchs[i.hatch_no]
rent_detail.price = i.price * open_hatchs[str(i.hatch_no)]
rent_detail.img = i.img
rent_detail.tags = i.tags
rent_detail.content = i.content
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment