Commit 60eeb22a authored by haowang's avatar haowang

fix code

parent 38a7e78f
......@@ -153,7 +153,7 @@ class PictorialProductAdd(APIView):
"""画报添加商品关系"""
def post(self, request):
ids = request.POST.get('ids', '[]')
ids = json.loads(request.POST.get('ids', '[]'))
product_id = request.POST.get('product_id')
try:
......
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