Commit 48a5a8f6 authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'test'

fix code

See merge request alpha/sun!250
parents 5f7cc988 ff6cf19b
......@@ -19,7 +19,7 @@ class ProductListView(APIView):
for obj in category_infos:
product_id = obj.get('product_id')
if ret.get(str(product_id)):
ret[str(product_id)] = ret.get(str(product_id)).append(obj)
ret.get(str(product_id)).append(obj)
else:
ret[str(product_id)] = [obj]
return ret
......@@ -32,7 +32,7 @@ class ProductListView(APIView):
for obj in effect_infos:
product_id = obj.get('product_id')
if ret.get(str(product_id)):
ret[str(product_id)] = ret.get(str(product_id)).append(obj)
ret.get(str(product_id)).append(obj)
else:
ret[str(product_id)] = [obj]
return ret
......@@ -45,7 +45,7 @@ class ProductListView(APIView):
for obj in classify_infos:
product_id = obj.get('product_id')
if ret.get(str(product_id)):
ret[str(product_id)] = ret.get(str(product_id)).append(obj)
ret.get(str(product_id)).append(obj)
else:
ret[str(product_id)] = [obj]
return ret
......
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